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
Legend

@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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...