Skip to content

Instantly share code, notes, and snippets.

@BigglesZX
Created December 15, 2020 11:19
Show Gist options
  • Save BigglesZX/1ffaa54a82472469678eb046d32a2a12 to your computer and use it in GitHub Desktop.
Save BigglesZX/1ffaa54a82472469678eb046d32a2a12 to your computer and use it in GitHub Desktop.
Show 100 top URLs producing 404s in nginx access log
cat access.log | grep 404 | awk '{print $7}' | sort | uniq -c | sort -nr | head -n 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment