Created
August 26, 2015 13:51
-
-
Save cmattoon/a63e75075e9bb4ccd50b to your computer and use it in GitHub Desktop.
Most common errors in apache log
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
# Relies on log format: | |
# [Wed Aug 26 00:00:00 2015] [error] [client 123.45.67.8] Error message here | |
cat /var/log/apache2/error.log | awk '{out=$9;for(i=9;i<=NF;i++){out=out" "$i}; print out}' | sed s/,\ referer.*// | sort | uniq -c | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment