瀏覽代碼

Explain findBots.sh a little more

master
Matt Baer 6 年之前
父節點
當前提交
ca03ff920a
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      bots/findBots.sh

+ 4
- 1
bots/findBots.sh 查看文件

@@ -1,7 +1,10 @@
#!/bin/bash

#
# Generates a Go map containing all bots that have accessed Write.as
# Generates a Go map containing all bots that have accessed Write.as from the
# application logs stored in /var/log/
#
# usage: findBots.sh application.log
#

cat /var/log/$1 | grep -i 'bot\|spider\|crawl\|scraper\|indexer\|voltron' | awk -F\" '{print $4}' | sort | uniq > bots.txt


Loading…
取消
儲存