Query to filter the logs and create alerts
Posted: Wed Jun 28, 2017 5:17 am
Hello Team,
I am working on creating a query on dashboard and using it for email alert generation.
The query is something like 1.1.1.1 && apache_error* && 404 (under Load query tab where user can add and the purpose of this query is to check for specific IP with apache error 404).
It works fine and filters out the logs from a long list of log trace on the dashboard and the same query is saved.
But this query when applied to generate an email alert fails and the alert keeps sending OK messages all the time.
I have taken care of Log interval and loopback interval (say 2m for both) for alert creation and given the Warning and Critical counts to 1 each.
I could see in Advanced Manager query (user email alerts - edit query) that the filter is copied as is and I am not so sure if this exact duplication of query string
will give us the expected result.
Why can't we create and edit the query on the NLS dashboard and use the same in generating alerts?
During the time when errors are induced, they can filtered on dashboard (using Load query option) but alerts are missed with OK messages.
Is there a link where I can refer to, for creating queries and using them in generating email alerts?
I am working on creating a query on dashboard and using it for email alert generation.
The query is something like 1.1.1.1 && apache_error* && 404 (under Load query tab where user can add and the purpose of this query is to check for specific IP with apache error 404).
It works fine and filters out the logs from a long list of log trace on the dashboard and the same query is saved.
But this query when applied to generate an email alert fails and the alert keeps sending OK messages all the time.
I have taken care of Log interval and loopback interval (say 2m for both) for alert creation and given the Warning and Critical counts to 1 each.
I could see in Advanced Manager query (user email alerts - edit query) that the filter is copied as is and I am not so sure if this exact duplication of query string
will give us the expected result.
Why can't we create and edit the query on the NLS dashboard and use the same in generating alerts?
During the time when errors are induced, they can filtered on dashboard (using Load query option) but alerts are missed with OK messages.
Is there a link where I can refer to, for creating queries and using them in generating email alerts?