Skip to content

Instantly share code, notes, and snippets.

@weirded
Created January 9, 2015 01:28
Show Gist options
  • Select an option

  • Save weirded/bd9e5430fe5e36cec7b4 to your computer and use it in GitHub Desktop.

Select an option

Save weirded/bd9e5430fe5e36cec7b4 to your computer and use it in GitHub Desktop.
Query 4
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