Created
April 2, 2011 23:34
-
-
Save ibrow/900014 to your computer and use it in GitHub Desktop.
Useful log analysis commands
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
# total non static pages a bot has scraped | |
awk '$7!~/css|png|jpeg|jpg|gif|js|ico/ {print $7}' /var/log/nginx/access.log | wc -l | |
# output error messages | |
awk '$3!~/notice|info/' error.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment