Splunk Search

Multiple Login Failure Attempts

mihall
Path Finder

How can I search for 10 failed logon attempts within a 5 minute timeframe?
I could try timechart, but a 24 hour period does not allow the interval to be as small as 5 mins. I could also "stats count by user", but this does not show any aspect of time.

0 Karma

woodcock
Esteemed Legend

Like this:

... | streamstats time_window=5m count(failed_logins) AS failed_logins BY user | where failed_logins >=10

DalJeanis
SplunkTrust
SplunkTrust

@woodcock - Since he mentioned stats count by user I think he wants ten failed logins for a single user...

0 Karma

mihall
Path Finder

No I'm actually looking for all failed logins by users. >10 was the most important part. Thanks

0 Karma

woodcock
Esteemed Legend

Updated, thank you @DalJeanis.

0 Karma

sbbadri
Motivator

try this

| timechart span=5m count(failed_logins) as failed_logins | where failed_logins <=10

0 Karma

woodcock
Esteemed Legend

I think: s/</>/

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...