Move IIS logs location to prevent C drive from being full


For a legacy system using IIS. Somehow, we face the problem that the operating system drive was full. We clear some log from the operating system drive (C drive) and move them to another free drive to increase total performance.
(This example used IIS version 7.5.7600.16385 on Windows Web Server 2008R2 SP1)

To move the IIS logs location from C:\inetpub\logs\logsfile\* try the following steps below.

  1. Open the Internet Information Services (IIS) Manager.

  1. Select "Logging".

  1. Browse to change the logs location.

  1. Create a new folder location "D:\inetpub\logs\LogFiles" (or a different location as needed). Then "OK"

  1. Click "Apply" for the new location for IIS logs.

  1. After changing the location, do restart the IIS service to apply the changes.

  1. Now the logs were changed to the new location. You can move logs from the old location to the new location (Or remove them).