Skip to content
Logs

Logs

pock8s shows the logs of one container, of all containers of a pod, or of all pods of a workload, merged and followed live. Workloads are Deployments, StatefulSets, DaemonSets, ReplicaSets and Jobs.

Open the logs

  • In a pod’s Containers tab, from a container.
  • With the Logs action on the detail of a pod or a workload.
  • With Logs in a row’s long-press actions.
  • With the palette verb logs (or log) on the object on screen.
  • With the key l on a hardware keyboard.

Reading logs needs the permission get pods/log.

Sources

Each container that feeds the view is a source, shown as a chip with a colour and a two-character tag, for example A1. Every line starts with the tag of its source. Sources opens the list: hide or show a source there.

pock8s follows at most 12 sources at once. A larger workload shows how many it follows, and you choose which ones. Pods that join or leave a workload are added or removed while you watch, with a marker line.

Follow and pause

The view follows new lines. Scroll up to pause: a pill counts the new lines that arrived, and Follow jumps back to the newest line. The buffer keeps the last 5,000 lines.

If a stream breaks, pock8s reconnects by itself and marks the gap in the log. When you leave the screen, the streams stop a few seconds later; when you come back, they resume with a marker and a fresh tail.

Toolbar

ControlDoes
Filter linesshows only matching lines and highlights the matches
Wrapwraps long lines; on by default on phones, off on larger windows
Timeshows the timestamp of each line
Previousshows the log of the previous container, the one before the last restart
Copycopies the lines shown

Very long lines are cut; the line sheet says where.

One line

Tap a line to open it in a sheet with its source, its time in UTC and the full text. A line that is JSON is also shown formatted. Copy line and Copy JSON copy it.

Log line sheet with source, time in UTC, the raw line and the formatted JSON, with Copy line and Copy JSON
A JSON line, formatted

When there is nothing to show

You seeMeans
Waiting for the container to startThe container has not started. The reason is shown, for example the scheduler’s reason for a pod without a node. pock8s tries again with growing pauses.
Logs are forbiddenRBAC denies get pods/log. Copy command copies the matching command for your cluster admin.
No lines yetThe container has written nothing since the view opened. New lines appear as it writes them.
The log is emptyThe container wrote nothing.
No pod belongs to this workload right nowTheir logs appear when pods start.
No previous containerThe container has not restarted, so there is no earlier log.

Not yet

A regular expression filter and sharing a log as a file are not in this release.