Stackdriver-logging agent or fluent-bit logging agent needs to be activated in order to export logs to Cloud Logging. Rationale: If neither stackdriver-logging nor fluent-bit service is running, the logs will not be exported to Cloud Logging.
Solution
Stackdriver-logging Agent Run the following command to enable stackdriver-logging : # systemctl start stackdriver-logging Fluent-bit Logging Run the following command to enable fluent-bit : # systemctl start fluent-bit Works for Both Simply update the instance metadata to enable logging as follows: # gcloud compute instances add-metadata <instance-name> --zone <compute-zone> --metadata google-logging-enabled=true