4.1.1.2 Ensure stackdriver Service is running

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Stackdriver logging agent needs to be activated in order to export logs to Cloud Logging.

Rationale:

If the stackdriver-logging service is not running, the logs will not be exported to Cloud Logging.

Solution

Run the following command to enable stackdriver-logging :

# systemctl start stackdriver-logging

Or update the instance metadata as follows:

# gcloud compute instances add-metadata <instance-name>
--zone <compute-zone>
--metadata google-logging-enabled=true

See Also

https://workbench.cisecurity.org/files/3659