Bob Mitchell

bob-o-rama: The Art of Slack.

Selective Logging

Selective logging in IIS for fun and profit

7th January 2009 - 17:33 - bob

A recent question from a client related to why data for part of their site wasn't appearing in their web analytics data (they happen to be using NetInsight).

For reasons that aren't important, this customer isn't using page tags, instead using the raw IIS server logfiles.

They had inadvertently deselected the 'log visits' checkbox for that portion of the site. This was duly re-enabled and the logging then continued and everyone was happy.

iss log visits - Click to enlarge.
Click to enlarge.

Of course logging is generally configured at the ISS site level, but there is an opportunity here to do something a bit smart...

How about de-selecting this for your common /assets, /images folders? This would shrink your logfiles, prevent you from having to strip the logfiles afterwards (as some people do) and you still get the benefits of then compressing the logs.

This is all rather low-tech, most people are going to be using page tags and many people aren't using IIS (although selective logging is perfectly feasible (and even more flexible) with Apache).

This is a really obvious thing, but it's never something that I'd thought of before.

Comments

Add your comment:

Your name:

Your comments:

* if your comment doesn't appear instantly, don't worry - it probably hit the spam filter and need to be moderated before it will show-up. (I also need to tinker with the caching policy a bit, it's not quite perfect)