Created
January 9, 2015 01:27
-
-
Save weirded/0ca554d039d4451702ba to your computer and use it in GitHub Desktop.
Query 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error | |
| parse “ip=*, errorcode=*“ as ip, errorcode | |
| where errorcode=”failed_login” | |
| lookup ip from /my/whitelisted_ips on ip=ip | |
| if( isNull(ip), "unsafe", "safe") as ip_status | |
| where ip_status="unsafe" | |
| count by ip | |
| top 10 newip, ip by _count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment