QuestionQ103

VerifiedImplementing observability practices and troubleshooting issues

You are running an application on a virtual machine (VM) that uses a custom Debian image. The image has the Stackdriver Logging agent installed, and the VM has the cloud-platform scope. The application logs information through syslog.

You want to use Stackdriver Logging in the Google Cloud Platform Console to visualize the logs. However, syslog does not appear in the "All logs" drop-down list of the Logs Viewer. What should you do first?

Explanation

On Linux, the Stackdriver Logging agent runs as fluentd; it must be running before syslog entries can be collected and appear in Cloud Logging. The cloud-platform scope already covers the necessary API access, while monitoring.write applies to Monitoring metrics rather than log ingestion. Google’s Logging agent troubleshooting guidance directs users to verify the agent process with ps ax | grep fluentd.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!