Skip to content

Instantly share code, notes, and snippets.

@jrumbut
Last active February 14, 2021 21:55
Show Gist options
  • Save jrumbut/50531431d8bb5c03a2d3 to your computer and use it in GitHub Desktop.
Save jrumbut/50531431d8bb5c03a2d3 to your computer and use it in GitHub Desktop.
Get 404 and 500 errors from apache error log
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