Last active
August 29, 2015 14:14
-
-
Save tigawa/8f4d01852a69d29fd2d9 to your computer and use it in GitHub Desktop.
access.logを解析するコマンド
This file contains 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
cat access.log | awk '{print $5 " " $7 }' | egrep "[45]..$" | sort | uniq - c | sort -nr | |
# 出力結果 | |
95 /favicon.ico 404 | |
13 /help?topic=8 500 | |
11 /login 403 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment