-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Execute command when log event matches a pattern #1311
Comments
Have you looked into shell_exec? |
Are you trying to execute an lnav command or a shell program? Most of lnav's functionality can be accessed through SQL vtables. |
I am trying to execute a shell command once log body matches a regex pattern. I added a watch expression:
But I am noticing, there are no entries in
I also have init sql
|
I think you have the arguments to |
I want to use the lnav Events interface to search for regex in live log files and run a command when a match is found. Do you have any suggestions on how to do this?
Eventually, I want to search log files for when a long-running process finishes, and I want to be notified when it's done.
I also couldn't find a way to execute non-SQL commands when a log event occurs.
The text was updated successfully, but these errors were encountered: