Skip to content

Instantly share code, notes, and snippets.

@yjaaidi
Last active October 30, 2015 14:49
Show Gist options
  • Save yjaaidi/8844766 to your computer and use it in GitHub Desktop.
Save yjaaidi/8844766 to your computer and use it in GitHub Desktop.
Splunk Search Query - Detect Above Average Activity Using Standard Deviation
tag=firewall action=deny
| stats count values(dst) by src
| eventstats avg(count) as avg_count
| eval standard_deviation=count/avg_count
| fields - count, avg_count
| search standard_deviation > 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment