nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #122

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…

The correct answer is D. SSH to the VM and execute the following commands on your VM: ps ax | grep fluentd. When syslog is not appearing in Stackdriver Logging, the first diagnostic step is to verify that the Stackdriver (Ops) agent process - which is built on fluentd - is actually running on the VM. SSH-ing in and running ps ax | grep fluentd confirms whether the agent process is…

Submitted by joshua94· Apr 18, 2026Implementing service monitoring strategies

Question

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?

Options

  • ALook for the agent's test log entry in the Logs Viewer.
  • BInstall the most recent version of the Stackdriver agent.
  • CVerify the VM service account access scope includes the monitoring.write scope.
  • DSSH to the VM and execute the following commands on your VM: ps ax | grep fluentd.

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    11% (4)
  • D
    81% (29)

Explanation

When syslog is not appearing in Stackdriver Logging, the first diagnostic step is to verify that the Stackdriver (Ops) agent process - which is built on fluentd - is actually running on the VM. SSH-ing in and running ps ax | grep fluentd confirms whether the agent process is alive before investigating configuration or permissions issues. Option A (test log entry) is a valid second step. Option B (reinstall) is premature without confirming the agent is running. Option C is incorrect because the cloud-platform scope already covers logging.write, making a separate monitoring.write scope check unnecessary at this stage.

Topics

#Cloud Logging#Logging Agent#Troubleshooting#VM Instance

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice