QuestionQ48

VerifiedImplementing observability practices and troubleshooting issues

You have a group of applications running on a Google Kubernetes Engine (GKE) cluster and are using Stackdriver Kubernetes Engine Monitoring. You are moving a new containerized application required by your company into production. The application was written by a third party and cannot be modified or reconfigured. It writes log information to /var/log/app_messages.log, and you want to send these log entries to Stackdriver Logging. What should you do?

Explanation

GKE’s logging agent collects logs written to container standard output and standard error, rather than arbitrary files within a container. A sidecar container can tail the application log file from a shared volume and write each entry to standard output, allowing Stackdriver Logging to collect it. About GKE logs

Learn more

Community Discussion

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