Hello Team,
I have a requirement, where i need to match a log pattern. How can i achieve it?
Sample log pattern are
:::DUMPLOG LOG CREATED
:::PROCESS LOG CREATED
We have to check count of “:::DUMPLOG LOG CREATED” and “:::PROCESS LOG CREATED” nearly equal. if count difference exceeded 10%, alert will generate.
LOG Pattern Matching
Re: LOG Pattern Matching
I would need to see some sample logs to ensure there aren't conflicts with any query I may provide.
A simple search for ":::DUMPLOG LOG CREATED" and ":::PROCESS LOG CREATED" seems to work to at least get results:
A simple search for ":::DUMPLOG LOG CREATED" and ":::PROCESS LOG CREATED" seems to work to at least get results:
Nagios Log Server alerts are currently a simple document count of query results. There's no way to implement conditional logic (or arithmetic) currently.if count difference exceeded 10%, alert will generate.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: LOG Pattern Matching
Hello mcapra,
I am trying to create an alert and i found a Query field there. How to write a custom query for this ?
I am trying to create an alert and i found a Query field there. How to write a custom query for this ?
You do not have the required permissions to view the files attached to this post.
Re: LOG Pattern Matching
The easiest way to create a query would be to get your dashboard displaying the events you would like to match, then using the "Manage Queries" button (magnifying glass at the top) to save the dashboard's query:
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: LOG Pattern Matching
Hello mcapra,
Thanks a lot. Exactly the thing i was looking for.
Thanks a lot. Exactly the thing i was looking for.
Re: LOG Pattern Matching
Was there anything further we can help with related to this or are we okay to lock the thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: LOG Pattern Matching
Hi Mcapra,
Thank you very much. We can close it now.
Thank you very much. We can close it now.