
Answer-first summary for fast verification
Answer: Use SSH to connect to the VM and execute the command `ps ax | grep fluentd` to check if the Stackdriver Logging agent is running.
The correct initial action is to verify if the Stackdriver Logging agent is running on the VM. This can be done by connecting to the VM via SSH and running the command `ps ax | grep fluentd`, which lists all processes containing 'fluentd'. If the agent is not running, it needs to be started to ensure logs are captured and displayed in the Logs Viewer. This step is crucial before exploring other potential issues like service account scopes or agent updates.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are running an application in a virtual machine (VM) using a custom Debian image. The Stackdriver Logging agent is installed, and the cloud-platform scope is assigned. Despite the application generating syslog information, these logs do not appear in the 'All logs' dropdown list within the Stackdriver Logging section of the Google Cloud Platform Console. What should be your first step to troubleshoot this issue?
A
Search for the agent's test log entry in the Logs Viewer to verify if the agent is functioning correctly.
B
Ensure the VM's service account access scope includes monitoring.write to allow log data submission.
C
Update to the latest version of the Stackdriver agent to resolve any potential compatibility issues.
D
Use SSH to connect to the VM and execute the command ps ax | grep fluentd to check if the Stackdriver Logging agent is running.