🔍 Log Debugging Shortcut
Scrolling through 10,000 log lines? See only what matters.
# Last 100 lines, follow mode (like tail -f) kubectl logs my-pod --tail=100 -f # From specific container in multi-container pod kubectl logs my-pod -c sidecar --tail=50 -f # Previous crashed pod kubectl logs my-pod --previous # All pods with label kubectl logs -l app=myapp --tail=20
Pro Tip: Pipe to grep: kubectl logs my-pod -f | grep ERROR
Save Logs: kubectl logs my-pod > debug.log
