Hi , I am trying to setup an alert when a host has stopped sending logs. I would like to group by hosts and check if log count is zero.
The UI is mandating at least 1 condition. Tried setting host.name is , but it literally looking for "" as host name and triggering alert since no hosts match that name.
Until then wouldn't specifying WITH host.name IS NOT this_is_not_a_valid_hostname lead to desired results? The conditions should evaluate to true for every log entry so the result would include all documents.
There is one additional caveat with checking for a zero log count: If there are no documents form a host at all, then there won't be a group for that host to alert on. To get around that we're collecting the list of hosts looking an additional 1 hour (in your example) into the past. Any host that hasn't sent any data for longer won't trigger the alert (because the system doesn't know it exists).
Thanks Weltenworth.
This would suffice my needs, the solution looked liked a hack and just want to make sure if there wasn't any feature that i was not aware of.
Thanks for the catch on hosts not sending data.
May be the log rate metric would ideal to build this alert or leverage on the Machine learning job.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.