← Debugging386 / 640
hardkubectl

Show pod logs from only the last hour to narrow down a recent error

command

kubectl logs POD_NAME --since=1h

also accepted

kubectl logskubectl logs POD_NAME --since

Command breakdown

Part of the Kubernetes CLI (kubectl) — Debugging category.

kubectllogsPOD_NAME--since=1h
FlagPurpose
--sinceSet to: 1h

Test your recall — not just your reading.

Practice with interactive quiz →