Limit output while checking current behavior.
Section: Pod Logs
Tail recent log lines
bash
bash
kubectl logs <pod> -n <namespace> --tail=200Learn 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 Pod Logs
Get logs from a named container
Required for sidecars and multi-container pods.
Follow logs with timestamps
Stream logs with timestamps for incident reconstruction.
Read previous logs after a restart
Useful for restarts and CrashLoopBackOff.
Read logs via deployment resource
Print logs from a workload resource instead of a single pod.