I'm trying to search for users that access the SAME system more than 5 times in 10 minutes, in order to identify any abused usage of the system. I'm hoping to create an alert for such an event.
Currently, I've come up with this:
...| stats dc(System_ID) count by userID | where count>5
But I'm not sure if it's correct and how to search within the 10 minute time frame. Please help me out. I'm quite new to Splunk Enterprise.
Thank you very much! 🙂
Hi this is my latest code where the threshold is the 95th percentile.
eventtype="centralizedlog"(hasAccess=Y) | bin span=20m _time | stats dc(System_ID) count by userID, _time| eventstats perc95(count) as adnorm | where count>adnorm | rename count as "Num of Log Events"| fields - adnorm - dc(System_ID)
Anyone knows how I can scheduled an alert that alerts me each time such event occurs? Thank you.