- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Top command based on lookup result
bugnet
Path Finder
07-27-2017
07:34 AM
The following search will give the count of attacks by attacker_IP and destination branch.
index=waf Name=block | lookup Branches IP AS dest OUTPUTNEW branch | stats count by src branch | sort -count
Now I just want to show the top 10 attacker IPs per Branch based on their high count.
Help is always appreciated.
Thanks!!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

HiroshiSatoh
Champion
07-31-2017
01:48 AM
try this!
index=waf Name=block | lookup Branches IP AS dest OUTPUTNEW branch | stats count by src branch | sort branch .- count|dedup 10 branch
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
07-27-2017
08:24 AM
I think the top
command will do that. Try this
index=waf Name=block | lookup Branches IP AS dest OUTPUTNEW branch | stats count by src branch | sort -count | top limit=10 count by branch
---
If this reply helps you, Karma would be appreciated.
If this reply helps you, Karma would be appreciated.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bugnet
Path Finder
07-31-2017
01:25 AM
Not working for me.
