This is a post processing task. I wouldn't try to change the log file at
all.
Instead, I suggest you use LogParser to preprocess the log file to
re-arrange such entries around (i.e. it's possible to use LogParser to
extract the original URL of a given 404 page and put it back to the
cs-uri-stem column ).
Then, you use your log file analyzer.
The above would be a far easier solution than you attempting to tackle an
ISAPI Filter to do something similar. Namely, you probably do not know C,
and a correct ISAPI Filter is non-trivial to write. Meanwhile, LogParser is
very easy to wield for such processing tasks.
I cannot seem to find a pure Log Parser 2.1 download link.
- IIS Resource Kit Tools (contains Log Parser 2.1, which you can extract
with "iis60rkt.exe /V/a" and then individually installed)
http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyi...6fc92ee
- LogParser 2.0
http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyi...cde4028
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Jeff Wilson" <wilson DeleteThis @silcom.com> wrote in message
news:01de01c36f53$6e0f21c0$a601280a@phx.gbl...
Hello,
I have created a custom 404 error page which is an ASP
script. The script can determine the requested page (by
looking at request.querystring) and then process the
request as intended.
However when I look in the web log file, I see the name of
the 404 error script rather than the name of the requested
file. I want the requested file stem to be shown in the
log file like before the custom 404 script.
(I do see the requested file is in the query string, but
my log file analyser looks at the cs-uri-stem.)
If it's not possible to have the requested file logged as
usual, then could I use a simple issapi filter or
something to perform the same function - and if so could
someone point me to a reference on this subject? (I am a
medium level Visual Basic programmer.)
Thank you very much to anyone that will help me,
Jeff Wilson