$ tail -n 100000 /var/log/apache2/error.log | perl -pe 's/^.*client ([.\d]*).*$/\1/' | sort | uniq -cd | sort -n | tail -n10
過去10万くらいのエラーだったアクセスからトップテンを抽出する
$ tail -n 100000 /var/log/apache2/error.log | perl -pe 's/^.*client ([.\d]*).*$/\1/' | sort | uniq -cd | sort -n | tail -n10
過去10万くらいのエラーだったアクセスからトップテンを抽出する