Security

We had a authentication outage today, trying to write the "best" alert for this? Input?

daniel333
Builder

All,

Had a AD outage today which caused issues, but we had no alert. I was just going to compare time ranges in 15 minute buckets for spikes, but thought there might be a fancier way to do it. Any input on some options on how to alert againt the authentication spike below?

alt text

Tags (1)
0 Karma

woodcock
Esteemed Legend
0 Karma

DalJeanis
Legend

Basically, timechart is s pretty good base solution for this... but I'm wondering what your count field on that kind of event contains. Is it the count in a particular unit of time? Is there even such a field? When you further count the count within timechart, whatever value might have been in that earlier count field is gone, so only the _time field is really passing. We've changed count to index below to clarify what is really happening.

tag=authentication tag=failure 
| fields index 
| timechart span=5m count as FailCount 
| eventstats avg(FailCount) as avgFail stdev(FailCount) as stdevFail max(FailCount) as maxFail
| eval Warning = avgFail + 2*stdevFail
| fields - avgFail stdevFail

The above will put a horizontal line at the avg + 2 sd level on the timechart, and another one at the maximum value found. Anything above this level you can consider alerting on.

This would let all the records through if any of them are worth alerting on...

| where maxFail >= Warning

... or this would let only the ones that are worth alerting on themselves....

| where FailCount >= Warning
0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...