you can delete or rotate logs using a simple batch script, put it somewhere handy like c:\batch\ or such:
---------START contents rotate.bat----------
del C:\WINNT\system32\LogFiles
rmdir C:\WINNT\system32\LogFiles
rename C:\WINNT\system32\LogFiles
rename C:\WINNT\system32\LogFiles
rename C:\WINNT\system32\LogFiles
rename C:\WINNT\system32\LogFiles
rename C:\WINNT\system32\LogFiles
rename C:\WINNT\system32\LogFiles
mkdir C:\WINNT\system32\LogFiles
move C:\WINNT\system32\LogFiles
---------END contents rotate.bat----------
then set it up to run daily (or weekly or monthly or whatever):
at 01:30:00 /every:M,T,W,Th,F,Sa,Su c:\batch\rotate.bat
you can easily change the number of subdirectories to how many you want to keep.
cheers.
Main Topics
Browse All Topics





by: leewPosted on 2005-01-30 at 23:10:53ID: 13180482
Yes, delete them. Done. Of course, I'd recommend MOVING them instead to another partition or to a CD or something.
You can also change the location of where IIS stores it log data by opening up the Internet Information Services MMC control panel. Then right clicking on your default web site, and on the Web Site Tab, click the Properties button in the "Enable Logging" section. In the window that appears, provide a new path for the log files.