Created
January 9, 2015 01:28
-
-
Save weirded/bd9e5430fe5e36cec7b4 to your computer and use it in GitHub Desktop.
Query 4
This file contains hidden or 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” | |
| | count by ip | |
| | where _count > 1000 | |
| | lookup ip from /my/whitelisted_ips on ip=ip | |
| | if( isNull(ip), "unsafe", "safe") as ip_status | |
| | where ip_status="unsafe" | |
| | top 10 newip, ip by _count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment