Skip to content

Instantly share code, notes, and snippets.

@timmow
Created May 12, 2011 14:10
Show Gist options
  • Save timmow/968567 to your computer and use it in GitHub Desktop.
Save timmow/968567 to your computer and use it in GitHub Desktop.
Find 404s in an access log and order by most occurences
cat access.log | perl -lane 'print $F[9] . " " . $F[7]' | grep 404 | sort | uniq -c | sort -b -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment