I wrote this script quite a few years ago to reduce the size of IIS log files by removing log entries for trivial requests (based on file extension for the request).

The version below only removes successful log entries for any request for gif and jpg images. However, as they tend to make up a large portion of the log this can significantly reduce the size of the file, an improvement for long(er) term storage on busy servers.

It has a couple of short-comings. Error control is minimal, and reporting is non-existent.

Leave a Reply

Your email address will not be published. Required fields are marked *