QuestionQ270

Integrating applications with Google Cloud services

You want to use the Stackdriver Logging Agent to send an application’s log file from a Compute Engine virtual machine instance to Stackdriver.

After you install 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.
Explanation

The Logging Agent must be configured with an additional custom input source for an application log file. That configuration tells the agent which file to tail and stream to Cloud Logging; a log export sink only routes entries after they have been ingested.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!