Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to disable IIS logging on my Windows 2008 R2 servers so my hard drive doesn't fill up with log files during load testing. I've tried disabling logging at the server and website level in IIS, using both the UI and command line as Microsoft has specified: http://technet.microsoft.com/en-us/library/cc754631(v=ws.10).aspx

When I use both methods listed in the above article the UI shows logging disabled throughout all of the nodes - server level, site level, application level but my Windows machines are still logging traffic.

Logging Disabled

I've tried disabling at only a site level and it does the same thing. I noticed this same problem in IIS7 on Windows 2008. Anyone have any suggestions?

Additional information: Windows 2008 standard R2 (IIS 7.5) and non R2 (IIS 7). My application pools are set to .NET 4.0, Integrated mode and 32-bit Applications.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

To disable all logging in IIS (7 + 7.5) you first need to change the default logging from per Site to per Server at the Server Level (as pictured above). Enable logging, change One log filer per to Server and then Disable it again. Done! (Note: IIS will restart with each enable / disable).

If you leave IIS set to One log file per site you have to disable logging on each individual branch of the tree as well as at the Default Web Site level. However even when I do this logging still occurs. Best to set IIS logging to Server and then disable. Much easier.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.