How to change the log file location Microsoft Log Files are all stored (apart from when using ODBC logging) in a specific log files directory.
| IIS4 |
c:\winnt\system32\logfiles |
| IIS5 |
c:\winnt\system32\logfiles |
| IIS6 |
c:\windows\system32\logfiles |
The log files are then separated by the site Instance ID. For example the default web site is always stored as W3SVC1, any new web sites you create will have a different number appended to the W3SVC foldername.
| Default Web Site |
c:\windows\system32\logfiles\w3svc1 |
You can change the location of where the log files are stored on the server for each site or for all sites by configuring the default server settings.
How to change the log file location
Select your web site in the Internet Information Services manager.

Right click and select properties to open the Web Site Properties Dialog.

Click properties next to the Active Log Format drop down to open the Logging Properties dialog.

As you can see from the above snap you can modify the log file directory. For performance reasons you should set this to a local drive.
As you will also see from above the log file name contains the W3SVC1\exyymmdd.log this will mean even if you move your log files to m:\websites\IISFAQ the log files will still be written to m:\websites\IISFAQ\W3SVC1. You can not remove the WebSite Instance from the location of where the log file will be saved. |