# Stern

Stern is a command-line tool that tails logs from multiple Kubernetes pods and containers at once, colour-coding each stream so developers can spot errors and debug cluster workloads quickly from a single terminal.

Canonical page: https://ourlocalhost.com/app/6186/stern

## Description

Stern is a command-line tool that tails logs from multiple Kubernetes pods and containers at once, colour-coding each stream so developers can spot errors and debug cluster workloads quickly from a single terminal.

## Platform availability

Available on 0 of 10 platforms.

## Health score

70/100 (Good), based on 4 of 5 factors.
- Maintained: 93 (last commit 4 days ago)
- Popular: 74 (4,925 GitHub stars)
- Easy to install: 15 (0 install platforms, install notes)
- Security check: 76 (no serious findings, CI, tests, OpenSSF Scorecard 4.1/10)

## Links

- GitHub: https://github.com/stern/stern

## Common questions

### How can I install stern?

You can download a binary release, build it from source with Go, or install it using asdf, Homebrew, Krew, or WinGet.

### How do I select specific pods or Kubernetes resources?

Use a pod-query that is either a regular expression or a Kubernetes resource in the form kind/name, such as deployment/nginx. Supported resources include pod, replicationcontroller, service, daemonset, deployment, replicaset, statefulset, and job.

### Does stern watch multiple containers in the same pod?

Yes, it can tail all containers in a pod automatically. You can limit what containers are shown with the container flag.

### What happens when pods are added or deleted?

If a pod is deleted, stern removes it from the tail. If a new pod is added, it is automatically included.

### How do I control color output?

Use the --color flag with auto, always, or never. Auto colorizes only when a TTY is attached.

### Can stern watch pods in more than one namespace?

Yes, use --all-namespaces or -A. A specific namespace given with --namespace is ignored when --all-namespaces is set.

---
Source: Our Local Host (https://ourlocalhost.com/app/6186/stern), the self-hosted and open-source app directory.
