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

Continuous Log Monitoring and Logging #7

Open
febinjoy opened this issue Nov 12, 2024 · 0 comments
Open

Continuous Log Monitoring and Logging #7

febinjoy opened this issue Nov 12, 2024 · 0 comments
Labels
feature request Propose a new feature

Comments

@febinjoy
Copy link
Owner

Is your feature request related to a problem? Please describe.
I would like to add continuous log monitoring and the ability to write log entries, along with a specified number of logs before and after the occurrence, to another log file.

Describe the solution you'd like
Implement a continuous log monitoring mechanism (like a search-tail agent) that reads new log entries as they are written to the log file.
The system should allow users to define keywords or regular expressions for key events in a config.
When a key event is detected, write the buffered log entries, the key event, and subsequent log entries to an output log file.
This log file would be a subset of the original log file. Search-tail should support monitoring different logs using various config entries in the config file.

Sample configuration is provided below:

{
  "buffer_size": 10,
  "post_event_log_count": 5,
  "output_log_path": "/path/to/output.log",
  "key_events": ["error", "warning", "critical"]
}

Describe alternatives you've considered
Alternatives include manually extracting relevant log segments or using scripts to automate this process, but these methods are less efficient and do not provide the same level of integration and ease of use.

Additional context
This feature could include options to specify the number of log entries before and after a key event, as well as configuration settings for the output log file.

@febinjoy febinjoy added the feature request Propose a new feature label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Propose a new feature
Projects
None yet
Development

No branches or pull requests

1 participant