StudyToCert

All certifications / CKA / Lessons

Certified Kubernetes Administrator CKA (Kubernetes v1.35 curriculum) · Domain 5: Troubleshooting

Container output streams: kubectl logs options, stdout/stderr vs log files, /var/log/pods and /var/log/containers, sidecar log streaming

▶ Watch the overview video

Last reviewed September 25, 2026 · Leer en español

Kubernetes logging starts from one convention: containers should write logs to standard output (stdout) and standard error (stderr). The container runtime captures both streams and writes them to files on the node, and kubectl logs reads those files through the kubelet. Anything an application writes to a file inside its own container filesystem is invisible to kubectl logs.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 6 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study CKA for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the CKA study plan