Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Quickly scan your Apache logs for 404 replies. Usage /bin/sh ./check404.sh /path/to/apache_log
#!/bin/sh
awk '$9 == 404 {print $7}' ${1} | uniq -c | sort -rn | head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.