Professional Cloud Devops Engineer · Free Practice Question Medium
Question 5
As a cybersecurity training and certification company, you are using a custom Debian image to run an application in a virtual machine (VM) on Google Cloud. The image has the Cloud Logging agent installed, and the VM has the cloud-platform scope. However, you are unable to see syslog in the "All logs" dropdown list of the Logs Viewer in Cloud Logging. What should be your initial action?
- A In order to find the agent's test log entry, you should check the Logs Viewer.
- B Access the VM via SSH and run the following command on it: ps ax | grep fluentd.
- C Ensure that the monitoring.write scope is included in the access scope of the VM service account.
- D The Cloud agent should be installed in its latest version.
Reveal correct answer
Correct answer: B
Explanation
The initial action to take when unable to see syslog in the "All logs" dropdown list of the Logs Viewer in Cloud Logging is to SSH to the VM and execute the following command on the VM: ps ax | grep fluentd. This command will check if the Fluentd logging agent is running on the VM. Fluentd is the default logging agent used by Google Cloud to collect and process log entries from VM instances. If the command returns output, it means that the Fluentd logging agent is running, and the issue might be with the configuration or the log entries themselves. On the other hand, if the command does not return any output, it means that the Fluentd logging agent is not running, and the issue might be with the installation or startup of the agent. In this case, you should check the installation and startup logs for any errors and try restarting the agent. Overall, checking if the Fluentd logging agent is running on the VM is a crucial first step in troubleshooting issues with logging in Google Cloud.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
