Alerting

Query to alert when no results found

navd
New Member

Hi ,
I am using the below query to send an email alert when the count of the string "process started" appears to be 0 . But the alert is not getting triggered on the below condition , Is the below query correct ?

index=abc "process started" |stats count by host|where count = 0

Tags (1)
0 Karma

koshyk
Super Champion

The reason is, the base query itself is empty.

Please try something like

index=abc "process started" |stats count by host
  | appendpipe [ stats count  | where count=0 | eval host="EMPTY"  ]
  | search host=EMPTY

.. and then trigger based if host=EMPTY

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...