Excluding files from web logs
Posted
by
Ray
on Stack Overflow
See other posts from Stack Overflow
or by Ray
Published on 2010-12-30T20:51:00Z
Indexed on
2010/12/30
20:53 UTC
Read the original article
Hit count: 333
Looking through my web logs, I see a lot of entries that don't interest me. Some of them are commonly used images, css files, and scripts, which I can easily exclude by un-checking the 'log visits' check box in IIS for the folder properties.
I would also like to exclude log entries for certain common requests which are not in their own folders. Mostly, 'favicon.ico'. 'scriptresource.axd', and 'webresource.axd'. These (especially scriptresource.axd) make up almost a third of a typical log file on my site.
So, the question is, how do I tell IIS not to log these requests? And is there any reason that this is a bad idea?
© Stack Overflow or respective owner