Alerting

How to edit my search to alert me on heavy frequency change on Netflow?

nickbijmoer
Path Finder

Hello guys,

I want to generate an alert when my netflow count is something like 10% above the usual average count.
I got something like this but i don't know how to go further 😞

sourcetype="cisco:asa"  earliest=-7d@d latest=@d   | stats count by date_mday  | eventstats avg(count)

can someone help me?

Greetings,

Nick

0 Karma

somesoni2
Revered Legend

Give this a try (assuming you want to compare today's count with last 7 day's average count. If not adjust the relative_time value in eval period ).

sourcetype="cisco:asa" earliest=-7d@d latest=now | timechart span=1d count | eval period=if(_time>=relative_time(now(),"@d"),"today","last7days") | eval temp=1
| stats avg(count) as avgcount over temp by period | fields - temp
| where today>1.1*last7days
0 Karma

nickbijmoer
Path Finder

I get the error: Error in 'stats' command: The argument 'over' is invalid.

0 Karma
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...