Answered by:
managing IIS logs

Question
-
User-2096174568 posted
Hello,
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...
Thursday, July 19, 2007 1:00 PM
Answers
-
User1347187933 posted
Hi AutoAviat,
Try these tools.
http://www.snapfiles.com/get/iislogarchiver.html
http://www.logfilemanager.com/
http://www.ultimate-webservices.com/?Lng=en-US&Navigation=2-1
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Tuesday, July 24, 2007 5:47 AM -
User1073881637 posted
Here is a tool I wrote that is free and allows you to zip and / or just delete them..
http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1310VBS Script.
http://blogs.thesitedoctor.co.uk/tim/2007/02/10/Automatically+Delete+Old+IIS+Log+Files.aspx- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Tuesday, July 24, 2007 6:28 AM
All replies
-
User1347187933 posted
Hi AutoAviat,
Try these tools.
http://www.snapfiles.com/get/iislogarchiver.html
http://www.logfilemanager.com/
http://www.ultimate-webservices.com/?Lng=en-US&Navigation=2-1
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Tuesday, July 24, 2007 5:47 AM -
User1073881637 posted
Here is a tool I wrote that is free and allows you to zip and / or just delete them..
http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1310VBS Script.
http://blogs.thesitedoctor.co.uk/tim/2007/02/10/Automatically+Delete+Old+IIS+Log+Files.aspx- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Tuesday, July 24, 2007 6:28 AM -
User1073881637 posted
Here is another thread that has a good VBS Script that uses 'gzip' to compress the logs.
Tuesday, July 24, 2007 6:35 AM -
User-2096174568 posted
wow thanks everyone !! :-)
Thursday, August 2, 2007 1:39 AM -
User1073881637 posted
Our pleasure. Good Luck!
Friday, August 3, 2007 6:17 AM -
User1045954094 posted
Let me know if you have any issues using the one I posted on my blog.
Tim
Friday, February 19, 2010 7:42 AM -
User-1415539275 posted
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.
-c
Friday, April 9, 2010 2:54 PM -
User1159155449 posted
You can delete them by hand
%SystemDrive%\inetpub\logs\LogFiles
Wednesday, October 12, 2011 5:39 AM -
User1691346475 posted
thatsit
you are correct. Just deleted and iis created a new one automatically
Friday, December 9, 2011 3:18 PM