Category Archives: IIS
Manage Storage of IIS Log Files – Scheduled Deletion of IIS Logs
Drive Space Full with IIS Log Files / Reclaim Disk Space
Are your Local Drives of your IIS Server running out of space? Have you checked the size of your IIS Logs?
If your IIS was setup by a professional; you would not have to go through this issue. The log files would have been managed appropriately
Ideally I do not see a purpose to keep IIS Log files beyond a period of 1 month. Those older than one month should ideally be removed to prevent disk space issues
I found below posts which will assist you. Before you use the below scripts; please identify the location of your log files
Using Powershell
http://www.codeproject.com/Articles/663000/Simple-Powershell-script-to-clean-up-IIS-log-files
Using VBScript
http://www.iis.net/learn/manage/provisioning-and-managing-iis/managing-iis-log-file-storage#02
By default; you would find them on C:\inetpub\logs\LogFiles\
To verify the location; open IIS and select the Default Website and click Logging
Take note of the path mentioned in the directory field