Aggregate logs across matching pods.
Section: Logs, Events, and Watches
Get logs for label selector
bash
bash
kubectl logs -l app=web --tail=100 -n paymentsExplanation
Aggregate logs across matching pods.
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
Get logs for named container
Read logs from a specific container in a multi-container pod.
Get previous container logs
Read logs from the previous crashed container instance.