You want to use the Stackdriver Logging Agent to send an application's log file to Stackdriver from a Compute Engine virtual machine instance. After installing the Stackdriver Logging Agent, what should you do first?
A.
Enable the Error Reporting API on the project.
B.
Grant the instance full access to all Cloud APIs.
C.
Configure the application log file as a custom source.
D.
Create a Stackdriver Logs Export Sink with a filter that matches the application's log entries.
C. Configuring the application log file as a custom source is the crucial step after installing the Stackdriver Logging Agent. This involves specifying the path to the application's log file in the agent's configuration files, so the agent knows where to find and how to parse your custom log files.
Answer B tells us to authorize the instance to ALL Cloud APIs. I don't see a world where this answer can be right as it breaks the least privilege principle quite heavily.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
santoshchauhan
7 months, 3 weeks agonicgas
11 months ago__rajan__
1 year, 1 month agomaxdanny
1 year, 2 months agocloser89
1 year, 5 months agotab02733
2 years agoGofX
1 year, 11 months agotomato123
2 years, 2 months agojavibadillo
2 years, 4 months agoherocc
2 years, 9 months agoParagSanyashiv
2 years, 9 months agosyu31svc
3 years, 4 months agomaleksah
3 years, 9 months agosaurabh1805
3 years, 11 months agofraloca
3 years, 10 months agomlyu
4 years, 3 months ago