Last active
August 29, 2015 14:02
-
-
Save sudar/980f9120ea7315a5d139 to your computer and use it in GitHub Desktop.
Print unique errors with count from Apache logs http://sudarmuthu.com/blog/how-to-print-unique-errorswith-count-from-apache-error-logs/
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
[Sat May 31 10:24:44 2014] [error] [client 127.0.0.1] Request header read timeout |
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
awk -F'[\[\]]+' '$4 == "error"{print $7}' error.log | sort | uniq -c | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment