You are running an application in a virtual machine (VM) using a custom Debian image. The image has the Stackdriver Logging agent installed. The VM has the cloud-platform scope. The application is logging information via syslog. You want to use Stackdriver Logging in the Google Cloud Platform Console to visualize the logs. You notice that syslog is not showing up in the “All logs” dropdown list of the Logs Viewer. What is the first thing you should do?
A. Look for the agent’s test log entry in the Logs Viewer.
B. Install the most recent version of the Stackdriver agent.
C. Verify the VM service account access scope includes the monitoring.write scope.
D. SSH to the VM and execute the following commands on your VM: ps ax | grep fluentd.
Disclaimer
This is a practice question. There is no guarantee of coming this question in the certification exam.
Answer
D
Explanation
A. Look for the agent’s test log entry in the Logs Viewer.
(Checking log entry will not be helpful.)
B. Install the most recent version of the Stackdriver agent.
(Not helpful)
C. Verify the VM service account access scope includes the monitoring. Write scope.
(monitoring.write scope is for monitoring agent and not logging agent.)
D. SSH to the VM and execute the following commands on your VM: ps ax | grep fluentd.
(https://cloud.google.com/logging/docs/agent/logging/troubleshooting#checklist)