Stern

No Change
assess
First Added:October 1, 2024 Updated: July 29, 2026

Stern tails logs across multiple pods and containers in Kubernetes with label and regex selectors. We assess it as a CLI companion when kubectl logs on one pod is not enough.

Blurb

Multi pod and container log tailing for Kubernetes.

Summary

What it is: Friendly fork of the original wercker/stern. Streams combined logs from matching pods; useful during rollouts and multi-replica debugging.

When to use:

SituationNotes
Multi-replica debugFollow all pods for a Deployment or label set
Init / sidecar noiseFilter containers while keeping one stream
Ad-hoc cluster opsFaster than scripting kubectl logs -f loops

When to skip:

  • Centralized logging already answers the question (Loki, Datadog, CloudWatch)
  • Need historical search, not live tail
  • Cluster policy blocks broad log access from workstations

Trade-offs: Great for live incident and deploy watching. Does not replace a log backend. Prefer the stern/stern fork over the archived wercker repo.

Details

TopicNotes
UpstreamActive fork: stern/stern
Legacy URLOlder notes pointed at wercker/stern
PairingLocal kubeconfig; same RBAC as kubectl logs

References