IIS 5 & IIS 6
managing IIS logs
Last post Dec 09, 2011 08:18 PM by dvnandover
Jul 19, 2007 06:00 PM|AutoAviat|LINK
I'm new so I apologize if this topic has been beaten to death. My company has many domain controllers with SMS. The system partitions are only 10GB and are filling up every few months largely due to IIS logs. I would like to point the logs to D:\ drive
and purge them every 60-90 days. I could manually logon and do this on each one, but has anyone created an automated way to configure (via script) the logs directory. I'm hoping to have a script that will accept a servers.txt file or something of the like
that it can execute against. Any help or direction is greatly appreciated....I've googled this and didn't find relevant info...
Jul 24, 2007 10:47 AM|GeorgeZ|LINK
Try these tools.
Jul 24, 2007 11:28 AM|steve schofield|LINK
Here is a tool I wrote that is free and allows you to zip and / or just delete them..
Windows Server MVP - IIS
Log archival solution
Install, Configure, Forget
Jul 24, 2007 11:35 AM|steve schofield|LINK
Here is another thread that has a good VBS Script that uses 'gzip' to compress the logs.
Aug 02, 2007 06:39 AM|AutoAviat|LINK
wow thanks everyone !! :-)
Aug 03, 2007 11:17 AM|steve schofield|LINK
Our pleasure. Good Luck!
Feb 19, 2010 12:42 PM|timgaunt|LINK
Let me know if you have any issues using the one I posted on my blog.
Apr 09, 2010 07:54 PM|cking2|LINK
Wouldn't it be nice if Microsoft added the ability to delete old logfiles without having to resort to a script or third party tool? With all the nice stuff they build, I am so surprised that they have never seemed to think of that addition to the logging
options in IIS.
Oct 12, 2011 10:39 AM|thatsit|LINK
You can delete them by hand
Dec 09, 2011 08:18 PM|dvnandover|LINK
you are correct. Just deleted and iis created a new one automatically