Last active
August 29, 2015 14:14
-
-
Save codfish/ee5698e0d0ad461f5706 to your computer and use it in GitHub Desktop.
Get apache response code counts for your site from 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 example.com-access.log | awk '{print $9}' | sort | uniq -c | sort -nr | |
# Example Output: | |
# 545475 200 | |
# 153819 304 | |
# 99102 301 | |
# 13346 404 | |
# 8027 206 | |
# 3822 302 | |
# 748 415 | |
# 263 405 | |
# 217 400 | |
# 16 403 | |
# 2 500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment