During a short outage window for a library catalog API, an engineer needs recent lines with wall-clock times rather than the entire container history. Which kubectl logs approach fits best?
Select an answer to reveal the explanation.
Short Explanation
Think of --tail as grabbing the last few pages of a notebook and --timestamps as writing the clock on each page. Together they shrink noise for a short incident window. That beats drowning in the whole log file.
Full Explanation
kubectl logs --tail=<N> --timestamps limits how many recent lines are returned and prefixes each with a timestamp, which helps correlate application output with a brief incident window. Cluster-wide event dumps, imagePullPolicy changes, and RBAC for aggregation do not provide focused, time-stamped container stdout for that triage.