Read logs from a specific container in a multi-container pod.
Section: Logs, Events, and Watches
Get logs for named container
bash
bash
kubectl logs web-abc123 -c web -n paymentsExplanation
Read logs from a specific container in a multi-container pod.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Logs, Events, and Watches