Splunk IT Service Intelligence

Dynamic baseline of IP hits

N92
Path Finder

I have total counts of unique IP hits. how can I create dynamic baseline for the hit counts with respect to IP addresses. Tried some average and standard deviation formulas but not getting expected output with search processing power optimization

Labels (1)
0 Karma

to4kawa
Ultra Champion

Sample: Alert if 50% different from 1 hour ago.

| makeresults count=2
| streamstats count
| eval _time=if(count=1,relative_time(_time,"-20h@h"),relative_time(_time,"@h"))
| makecontinuous span=5m _time
| eval ip_count=random() % 2
| timechart span=1h sum(ip_count) as ip_count
| autoregress ip_count as prev_ip_count
| eval diff=max(ip_count,prev_ip_count) / min(ip_count,prev_ip_count)
| eval alert=nullif( diff > 2 ,NULL)
0 Karma

to4kawa
Ultra Champion

Is timechart span=1h dc(ip) wrong?

0 Karma

N92
Path Finder

Sorry for incomplete information. I am looking for trend kind of statistics. if last day I have this much of hits from single IP and today if suddenly it's increased than rule should trigger.

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 ...