Splunk Search

Gathering stats

robK123
Explorer

Every day I run a search that finds any users who have had at least 5 failed login attempts

source="secure" sshd "pam_ldap: error trying to bind as user"|top uid limit=500 | search count >= 5

This works fine but once a month I want to compile a report of how many users had 5 or more failed login attempts in a 24 hour period. So I need to create a search that covers 30 days but only show me users that had at least 5 failed logins in a 24 hour period at some point during the 30 days and they could of also of had 5 failed logins at 2 different days during the 30 day period. Hope that makes sense!

Does anyone know how to do this?

Thanks,

Tags (1)
0 Karma

yannK
Splunk Employee
Splunk Employee
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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