Created
June 21, 2016 11:05
-
-
Save dannycroft/79c2fe2e323d074bd111776beb4ff0a3 to your computer and use it in GitHub Desktop.
Sumologic Find Bots
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
| _sourceCategory=Apache/Access | |
| | parse regex "\"[A-Z]+\s+\S+\s+HTTP/[\d\.]+\"\s+\S+\s+(?<size>\d+)\s+\S+\s+\"(?<agent>[^\"]+?)\"" | |
| | parse regex field=agent "(?<bot_name>facebook)externalhit?\W+" nodrop | |
| | parse regex field=agent "Feedfetcher-(?<bot_name>Google?)\S+" nodrop | |
| | parse regex field=agent "(?<bot_name>PaperLiBot?)/.+" nodrop | |
| | parse regex field=agent "(?<bot_name>TweetmemeBot?)/.+" nodrop | |
| | parse regex field=agent "(?<bot_name>msn?)bot\W" nodrop | |
| | parse regex field=agent "(?<bot_name>Nutch?)-.+" nodrop | |
| | parse regex field=agent "(?<bot_name>Google?)bot\W" nodrop | |
| | parse regex field=agent "Feedfetcher-(?<bot_name>Google?)\W" nodrop | |
| | parse regex field=agent "(?<bot_name>Yahoo?)!\s+Slurp[;/].+" nodrop | |
| | parse regex field=agent "(?<bot_name>bing?)bot\W" nodrop | |
| | parse regex field=agent "(?<bot_name>Bing?)Preview\W" nodrop | |
| | parse regex field=agent "(?<bot_name>Sogou?)\s+web\s" nodrop | |
| | parse regex field=agent "(?<bot_name>Yandex?)Bot\W" nodrop | |
| | parse regex field=agent "(?<bot_name>rogerbot?)\W" nodrop | |
| | parse regex field=agent "(?<bot_name>AddThis\.com?)\s+robot\s+" nodrop | |
| | parse regex field=agent "(?<bot_name>ShareThis?)Fetcher/.+" nodrop | |
| | parse regex field=agent "(?<bot_name>Ahrefs?)Bot/.+" nodrop | |
| | parse regex field=agent "(?<bot_name>MetaURI?)\s+API/.+" nodrop | |
| | parse regex field=agent "(?<bot_name>Showyou?)Bot\s+" nodrop | |
| | parse regex field=agent "(?<bot_name>Google?)Producer;" nodrop | |
| | parse regex field=agent "(?<bot_name>Ezooms?)\W" nodrop | |
| | parse regex field=agent "(?<bot_name>Rockmelt?)Embedder\s+" nodrop | |
| | parse regex field=agent "(?<bot_name>Sosospider?)\W" nodrop | |
| | parse regex field=agent "(?<bot_name>Baidu?)spider" nodrop | |
| | parse regex field=agent "(?<bot_name>Exabot?)\W" nodrop | |
| | if (bot_name="","Normal Traffic", "Bot") as traffic_type | |
| | timeslice 1m | |
| | (size/1048576) as mbytes | |
| | sum(mbytes) by traffic_type, _timeslice | |
| | transpose row _timeslice column traffic_type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment