Skip to content

View nginx log message based on specific file #868

@atompsv

Description

@atompsv

** Is your feature request related to a problem? Please describe. **
I would like the ability to read logs by specifying a particular log file. Currently, there is no straightforward way to dynamically select a specific log file for reading.

The log files are typically located in /var/log/nginx/, and having an efficient method to choose and read a specific file would greatly improve usability. Additionally, it would be helpful to have the option to:

  • View only the last N lines of a log file (e.g., the last 10 lines).
  • Follow the log in real time (similar to tail -f).
  • Search within logs using keywords, similar to the grep command in Linux, to filter relevant log entries.

** Describe the solution you'd like **
It would be beneficial to have:

  • A command or option to specify the exact log file to read.
  • A way to view only the last N lines of a selected log file (e.g., tail -n 10 /var/log/nginx/access.log).
  • An option to follow logs in real-time (like tail -f), but with the ability to start by showing a specific number of lines.
  • A search/filter function to find specific log entries, similar to how grep works in Linux (grep "error" /var/log/nginx/access.log).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions