Any opinions expressed here are my own and not necessarily those of my employer (I'm self-employed).

May 16, 2011

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).


  1. Exactly what I was looking for. Thank you!!

  2. Installed, still nog Logging icon, should I restart the f-ing server?

  3. Great explanations!
    I was also shocked to see its not enabled by default and the Microsoft tech articles don't even mention you have to add the feature from the windows program list!

  4. Good explanation. If you are looking more information, here is how to find iis logs

  5. Thanks for info!


Copyright notice

© André N. Klingsheim and www.dotnetnoob.com, 2009-2015. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to André N. Klingsheim and www.dotnetnoob.com with appropriate and specific direction to the original content.

Read other popular posts