Forum Moderators: DixonJones
I downloaded one day's log and searched for the term "404". I thought I was going to find that I forgot to upload one entire directory and the missing pages would be easy to identify.
It didn't turn out that way, nothing was painfully obvious. Since the string "404" is in my logs for a variety of reasons (such as a part of IP addresses, etc...). How are 404 errors documented in a Windows server log? What is the position of the "404" in each line that wouold indicate a "404 - not found error" for that page.
Search for " 404 " -- That is, <space> 404 <space>. That will eliminate false matches on IP addresses and such.
Comparing several lines, with both successful (200-OK or 403-Not Modified) and unsuccessful (404-Not Found or 410-Gone) requests, should point you to the proper column.
Here are two typical Apache log lines. The first indicates success, while the second is a 404:
62.**.213.196 - - [04/May/2007:06:02:30] -0600] "GET /score.xls HTTP/1.0" 200 131411 "http://www.example.com/spreadsheet" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.11) Gecko/20070312 Firefox/1.5.0.11"
62.**.213.196 - - [04/May/2007:06:02:30] -0600] "GET /score.xls HTTP/1.0" 404 573 "http://www.example.com/spreadsheet" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.11) Gecko/20070312 Firefox/1.5.0.11"
In order, the fields shown here are:
Jim