Alerting

Search Query - Alert

rashi83
Path Finder

Hi ,
I have a query which returns 5 events ( basically 5 files gets transferred) . I need to send an alert once all 5 files are transferred - meaning as soon as the event count is 5 , alert should be triggered. IS the below query good enough for such scneario ?

Should I write like index=* X y | stats count by FileName | where count=5

Labels (1)
Tags (2)
0 Karma

to4kawa
Ultra Champion

Does only success populate the event?

0 Karma

rashi83
Path Finder

yes , if only success / transfer happen - event gets written

0 Karma

to4kawa
Ultra Champion

well, your query is enough for this, I think.

0 Karma

rashi83
Path Finder

So while setting up Alert - should I mention Trigger Alert when Number of Results is greater than 4. OR will the query takes care of it.

I am little confused .

0 Karma

to4kawa
Ultra Champion

you use | where count=5
, so to fire
alert

event count > 0

rashi83
Path Finder

Thank you

0 Karma

to4kawa
Ultra Champion

please provide your query for answer and accept it.

0 Karma

rashi83
Path Finder

up voted your answer

0 Karma

to4kawa
Ultra Champion

thank you rashi83

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...