Tuesday, 4 September 2012

Enabling IIS log files on Windows 7



I'm baffled. IIS 7.5 does not log to files by default, you have to enable the feature manually. In the settings it's called "HTTP logging", here's how to enable it:

If you can't find IIS log files in C:\inetpub\logs you should open your IIS Manager and check if the logging option is present in the IIS menu section (top right in the screenshot).

 
If you can't find the Logging option, go to: Control Panel\Programs -> Turn Windows Features on or off to enable IIS logging.
 

I had to close the IIS Manager and open it again for the changes to take effect. Now the IIS should log to C:\inetpub\logs.

After some intense Googling, I was able to find this article by Microsoft: Enable or Disable Logging (IIS 7). It states that logging is enabled by default in IIS 7. This does not seem to be the case on my IIS 7.5 (Windows 7 Enterprise). 

No comments:

Post a Comment