I'm looking for a command to list the 10 or 20 top 404 error URLs out of my apache access_log. Can anyone help me with this?
thanks
|
I'm looking for a command to list the 10 or 20 top 404 error URLs out of my apache access_log. Can anyone help me with this? thanks |
|||
|
|
|
Assuming the normal access_log format this should do it:
|
|||||||||||||
|
|
I've done this using standard unix utilities, awk, sort, etc, and it works fairly well. Since the format of your logs could be different, you may have to change some things to work in your environment, but the basic command would be this:
If you are not familiar with awk, what we are doing is:
If you are using a custom apache log format, then you will need to change the |
|||
|
|