Summary
Upgrade log viewing with multi-pod tailing, log search/grep, and improved follow mode.
Motivation
stern is the go-to tool for multi-pod logs, but it requires a separate install. Building stern-like capabilities into KubeRift eliminates tool switching.
Requirements
Multi-Pod Logs
- When multiple pods selected (tab to multi-select),
Ctrl-L streams all logs interleaved
- Prefix each line with pod name (color-coded per pod)
- Use:
kubectl logs <pod> -n <ns> --tail=100 -f for each pod
- Merge streams chronologically
Log Search
- Within log view, allow
/pattern to search/filter log lines
- Highlight matching lines
- Regex support
Follow Mode
Ctrl-L enters follow mode by default (-f flag)
q to exit, p to pause/resume, s to search
- Show line count and bytes received
Container Selection
- For multi-container pods, prompt: "Which container?" or "All containers?"
--all-containers equivalent
Timestamps
- Option to show/hide timestamps:
kubectl logs --timestamps
- Configurable in config.toml:
[logs] show_timestamps = true
Acceptance Criteria
Summary
Upgrade log viewing with multi-pod tailing, log search/grep, and improved follow mode.
Motivation
stern is the go-to tool for multi-pod logs, but it requires a separate install. Building stern-like capabilities into KubeRift eliminates tool switching.
Requirements
Multi-Pod Logs
Ctrl-Lstreams all logs interleavedkubectl logs <pod> -n <ns> --tail=100 -ffor each podLog Search
/patternto search/filter log linesFollow Mode
Ctrl-Lenters follow mode by default (-fflag)qto exit,pto pause/resume,sto searchContainer Selection
--all-containersequivalentTimestamps
kubectl logs --timestamps[logs] show_timestamps = trueAcceptance Criteria