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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...