-
-
Save princessruthie/419426c5fdde8cd250d82089422297a1 to your computer and use it in GitHub Desktop.
Get 404 and 500 errors from apache error 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.1 | grep " 500 " | awk -F'"' '{print $2,",",$4,",",$6}' > /home/ubuntu/500.log | |
cat access.log.1 | grep " 404 " | awk -F'"' '{print $2,",",$4,",",$6}' > /home/ubuntu/404.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment