Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View nginx log message based on specific file #868

Open
atompsv opened this issue Feb 18, 2025 · 0 comments
Open

View nginx log message based on specific file #868

atompsv opened this issue Feb 18, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@atompsv
Copy link

atompsv commented Feb 18, 2025

** 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).
@atompsv atompsv added the enhancement New feature or request label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant