The scenario introduced some fundamental techniques to inspecting events and application logs on Kubernetes. Because Kubernetes is distributed, you cannot just inspect logs found in a single directory.
Beyond this scenario, explore techniques to automate log aggregation and synchronization. Logs are stored in the
/var/log/pods directories, which as considered ephemeral. DaemonSets on the Nodes and Sidecars in the Pods can centralize and sync these logs to other services. The other services, like Elasticsearch, offer reliable long-term persistence, rich queries, and automatic alerting based on the rules often defined by Site Reliability Engineers (SREs). As a next step, explore the Logging with EFK scenario.
With these steps you have learned how to:
- ✔ ensure your 12-factor application generates logs to streams,
- ✔ inspect Kubernetes cluster events,
- ✔ inspect container logs across multiple Pods,
- ✔ use some convenient command-line tools to view log aggregations.
For a deeper understanding of these topics and more join
at various conferences, symposiums, workshops, and meetups.
Software Architectures ★ Speaker ★ Workshop Hosting ★ Kubernetes & Java Specialist