Splunk 5.0 brings some interesting new anomaly prediction commands to the table. While I haven’t had time to really drill into everything that’s available, I did enjoy playing with the new predict command (nota bene that it has an even smarter cousin, x11, which understands seasonal patterns). Give it an event stream and it will give you a “band of normalcy” tracking the 95th percentile ceiling and floor… along with predictions of what those values might expand to.
Of course, as soon as we have a band of normalcy we might start thinking about notifying people if there are any events where reality leaves that band…
sourcetype="iis" | timechart span=1m count(dest) as distinct_count | predict distinct_count | rename upper95(prediction(distinct_count)) as ceiling | rename lower95(prediction(distinct_count)) as floor | eval excession=if(distinct_count > ceiling, "100", "0") | eval recession=if(distinct_count < floor, "-100", "0") | table _time,excession,recession,distinct_count,ceiling,floor
Here we’re showing a graphic, suitable for monitoring; of course, we could also skip most of that and just alert whenever an excession or recession is detected, or even use those excession and recessions to correlate against something else before paging anybody at 3 in the morning. Simple anomaly detection and a prediction of reasonable future values without revisiting any textbooks, pretty nice!
----------------------------------------------------
Thanks!
Jack Coates
The world’s leading organizations rely on Splunk, a Cisco company, to continuously strengthen digital resilience with our unified security and observability platform, powered by industry-leading AI.
Our customers trust Splunk’s award-winning security and observability solutions to secure and improve the reliability of their complex digital environments, at any scale.