You are deploying your application to a Compute Engine virtual machine instance. Your application is configured to write its log files to disk. You want to view the logs in Stackdriver Logging without changing the application code. What should you do?
A) Install the Stackdriver Logging Agent and configure it to send the application logs.
B) Use a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
C) Provide the log file folder path in the metadata of the instance to configure it to send the application logs.
D) Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging. Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.
Correct Answer:
Verified
Q11: You are developing an HTTP API hosted
Q12: You are building a new API. You
Q13: Your service adds text to images that
Q14: You are writing a single-page web application
Q15: You are load testing your server application.
Q17: You are deploying your application to a
Q18: You have deployed an HTTP(s) Load Balancer
Q19: You want to notify on-call engineers about
Q20: Your application takes an input from a
Q21: You are planning to migrate a MySQL
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents