Kubernetes Pod Log Viewer: kubectl logs by Pod and Container
Groups kubectl logs --prefix --timestamps output by pod and container and can merge all lines into one timeline.
Use the tool
Why this tool exists
When several containers write at once, kubectl prints them in blocks. Merging by timestamp shows what happened in order across pods.
Use kubectl logs --prefix --timestamps (with --all-containers or a label selector) so each line has a [pod/name/container] tag and a time. Lines without the prefix are listed as having none.
How to use it
- Run kubectl logs -l app=web --all-containers --prefix --timestamps.
- Paste the output or choose the file.
- Filter by pod, container or text.
- Keep time sort on to see one timeline.
Frequently asked questions
Why do I need --prefix?
Without it the output does not say which pod or container wrote a line.
Does it call my cluster?
No. It only reads text you paste.
Can it read stern output?
Not directly. Use the kubectl --prefix format.
Is my log uploaded?
No. Parsing happens in your browser and nothing is sent. Logs can hold IP addresses and tokens, so the page does not write them into the address bar.