NoodlesWIU
asked on
On Prem Exchange Server. Can I delete IIS logs?
We have an on-prem 2016 Exchange Server. I just noticed how much of the C:\> drive was filled and noticed I have 300GB worth of IIS log files in the Inetpub\logs\LogFiles Folder. Can I simply delete the log files under the two Web instances I have of W3SVC1, and W3SVC2?
I really don't need the old accumulation of logs.
I really don't need the old accumulation of logs.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can I simply delete the log files under the two Web instances I have of W3SVC1, and W3SVC2? yes delete old logs.
You can also use IISLogsCleanup.ps1 script.
Script File Download Location:
https://gallery.technet.microsoft.com/office/IIS-Logs-Compress-and-3eb41a5b
How to
https://practical365.com/exchange-server/powershell-script-iis-logs-cleanup/
Script File Download Location:
https://gallery.technet.microsoft.com/office/IIS-Logs-Compress-and-3eb41a5b
How to
https://practical365.com/exchange-server/powershell-script-iis-logs-cleanup/
you could also just download the cleanuplogs.ps1 from here
https://gallery.technet.microsoft.com/office/Clear-Exchange-2013-Log-71abba44
This will then allow you to recover more space.
https://gallery.technet.microsoft.com/office/Clear-Exchange-2013-Log-71abba44
This will then allow you to recover more space.
I suggest moving the logs to a different drive, and compress the directory. We typically put Exchange logs on a dedicated drive, which is very easy to do when it is a VM.