Skip to content

[Feature]: Display Contextual Logs (Before/After) #21

@mr-karan

Description

@mr-karan

Is your feature request related to a problem?

When analyzing logs, viewing a single log line in isolation often doesn't provide enough context to understand the surrounding events. Manually searching or scrolling for logs immediately before and after a specific event of interest is inefficient and can make debugging difficult.

Describe the solution you'd like

Implement a feature that allows users to easily view contextual logs surrounding a selected log entry. When a user selects or focuses on a particular log line:

  1. The system should automatically fetch and display a configurable number (e.g., N=10) of log entries that occurred immediately before the selected entry based on timestamp.
  2. The system should also fetch and display a configurable number (e.g., M=10) of log entries that occurred immediately after the selected entry based on timestamp.
  3. These "before" and "after" contextual logs should be clearly presented alongside the selected log entry, perhaps visually distinct (e.g., grouped, different background shade).
  4. Ideally, the number of context lines (N and M) should be configurable by the user.

Describe alternatives you've considered

  1. Manual Scrolling/Searching: Users manually navigate the log stream to find surrounding events.
  2. Time-Range Filtering: Users apply precise time range filters around the event timestamp, which can be cumbersome.

Additional context

This feature aims to significantly speed up log analysis and troubleshooting by providing immediate, relevant context around log events, reducing the need for manual searching and improving the user's ability to understand event sequences

Importance

Nice to have

Contribution

I could help with parts of it

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions