-
-
Save 3014zhangshuo/390fcaca41785d7482963a0521bca458 to your computer and use it in GitHub Desktop.
Get 404 and 500 errors from apache error 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
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