Topic 1 Question 5
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?
Look for the agent's test log entry in the Logs Viewer.
Install the most recent version of the Stackdriver agent.
Verify the VM service account access scope includes the monitoring.write scope.
SSH to the VM and execute the following commands on your VM: ps ax | grep fluentd.
ユーザの投票
コメント(17)
Between C and D, I think D
Reason : When an instance is created, we can specify which service account the instance uses when calling Google Cloud APIs. The instance is automatically configured with access scope and one such access scope is monitoring.write (Link : https://cloud.google.com/compute/docs/access/service- read is to publish metric data and logging.write is to write compute engine logs.
Considering above, I believe D as the answer (check whether the agent is running)
👍 10raf21212021/08/07C, first thing to check should be the access scope. There are 3 types of scopes, default, full access and access for each API. Even thought the default scope have the Stackdriver write access, it doesn't mean the instance has the default scope. It could be access for each API. Hence, first thing to check is the scope. After that, you can check the fluentd service in the system. C over D.
👍 2guruguru2021/06/23Ans: D
👍 2alaahakim2021/12/05
シャッフルモード