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

Filed under:
|

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

Excluding files from web logs

Posted by Ray on Server Fault See other posts from Server Fault or by Ray
Published on 2010-12-30T22:26:28Z Indexed on 2010/12/30 22:55 UTC
Read the original article Hit count: 332

Filed under:
|

I originally tried this question on StackOverflow, but it was suggested that serverfault was a better choice. So, here it is...

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?

The purpose of doing this is to reduce the log file size and the amount of work the server has to do, to make the log file more manageable when I need to dig in to them for troubleshooting, and for my own curiosity. I realize that log file parsers can skip the junk, but I am interested in reducing the raw files, before parsing.

© Server Fault or respective owner

Related posts about ASP.NET

Related posts about iis6