In your Exchange 2013 environment you may be wondering why the space on your C:\ drive where Exchange is installed is filling up so quickly. This is due to the amount of logging Exchange 2013 does by default. Microsoft turned this on to assist them with more rapid assistance with customers instead of waiting for logs.
From CU6 for Exchange 2013, .etl files were created. With the current build Exchange 2013 creates 50MB files at a time with a maximum of 100 files. For smaller businesses this is not ideal.
The other feature that logs weekly and daily files is the Diagnostic logs (Health explorer). This will generate files up to 5GB over a week/month. Some of you might want that space because you are limited with the current hardware you have.
The other player here is IIS logs. These can generate quite a bit and at 500MB+ a log file you can run out of space rather quickly.
Lastly, another set of logs that could be filling up is the HTTP Proxy log. This log will fill up in most cases when you have issues and will create an hourly file from 4MB onward.
In this article we will go through each of the following logs below and explain how you can maintain them or turn them off:
Lastly, a PowerShell script is available to run a clean up without having to go into each folder.
Health Manager runs and collects information about the health of the system. If you have ample space this is fine but if you have an 80GB C:\ drive your drive is going to fill up in less than a few days. If you need to disable this feature you can do so as follows:
Open up Services.msc,
The next thing to stop/disable is the task that runs. Open up Task Scheduler.
The next step is to clear out the logs created by Diagnostics. Open up Explorer.
Navigate to C:\Program Files\Microsoft\Exchange Server\V15\Logging\Diagnostic.
These files are generated almost every hour and are about 50MB in size. The default registry entry for this is to keep 100 files. We will adjust this value further down.
To locate these files go to the following location:
Within the Diagnostics folder there is another folder that is logging. Here is the location:
You can change the default value of 100 files to a number you want by changing the following registry key:
IIS Log files write to the C:\inetpub directory by default. You can change this to another drive, etc. These files can be 200MB+ and overtime will use up space on the drive. To delete them, open up the following location:
You can also look in the following folder for the same set of folders: C:\Program Files\Microsoft\Exchange Server\V15\Logging\RpcHttp
The last place you can look as well for log files is in this location:
Located in each of the folders some files can be 10MB in size and generate quite a few. These logs will tell you if you have errors in your environment especially the RpcHttp folder.
You should be able to free up a few GBs of space.