Skip to content

Instantly share code, notes, and snippets.

@tzi
Last active May 24, 2018 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzi/425c51086389244dfc2844d9dce19fdf to your computer and use it in GitHub Desktop.
Save tzi/425c51086389244dfc2844d9dce19fdf to your computer and use it in GitHub Desktop.
Filter apache log to get most 404 pages
grep " 404 " /var/log/apache2/access.log |
cut -d'"' -f2 |
cut -d' ' -f2 |
sort |
uniq -c |
sort -h -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment