Skip to content

Enhanced log streaming (multi-pod, search, follow) #55

Description

@syedazeez337

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

  • Multi-pod log interleaving works
  • Lines prefixed with color-coded pod names
  • Search/grep within log output
  • Follow mode with pause/resume
  • Multi-container selection prompt
  • Timestamp toggle
  • Tests: verify log command construction

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-lowPolish and quality of lifeenhancementNew feature or requestphase-4-polishEnterprise features and polish

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions