IIS7 Logging

Our server ran out of hard drive space. We noticed that it was due to W3c logs.
We saw a forum post that said it was okay to delete them, so we did.

I found the property for Logging. I would like to know what the recommended setting is for purging log files, etc., to keep these in check.

We have never used them, nor had a need for them.

Starr DuskkASP.NET VB.NET DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jose TorresCertified Database AdministratorCommented:
First as a general rule I avoid putting the log files on the C drive unless I have no other drives available as C drives are generally configured smaller.  That alone would save you some grief down the road.

Now on to your question.
The logging you found does not control purging.  Rare as it may be there is no built in feature to purge log files.  What you are looking at is the basic configuration for logging.
The Log File section is pretty much what format, which fields and where you want the log files to be stored.
The Log File Rollover is basically states how often to create a new log file.

Check out the following links they may give you an idea on which way to go
Managing IIS Log File Storage
ODBC Logging <odbcLogging>
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
In a nutshell, how do I turn them off and what are the ramifications if I do?

I have never personally ever done anything with log files since 1999. But maybe the system does, so I don't know.

Also, if I were to move them to the docs server on S:
It would just be this change?

Once I change that, do I need a reboot? Will it mess up users who are online at the time? (After I deleted them the other day, weird things happened on the server and we did a reboot. Could have been a coincidence, but who knows.)

And I notice I can set it to Daily, Weekly, Monthly. If I set it Monthly instead of daily, will that use less drive space and be fine? What are the ramifications of that?

SOS (sorry so stupid)

Jose TorresCertified Database AdministratorCommented:
Unless all the web apps have the custom coded logging i would generally not disable iis logging.
But keep in mind that this is pure iis logging it will record all connections and where those connections go.  So it is helpful for an admin when an user starts to complain that the web site doesnt work

Yes that is all you have to change.  I personally make the parent directory IISLog and a child directory for each web site.
S:\IISLog\WebSite80  - This is the default web site on port 80
S:\IISLog\WebSite8181 - This is an additional web site on port 8181

No you do not need a reboot.  I did this a few months back on all my prod servers.
Once you change the destination the next time that a someone accesses the web site it will automatically generate a new log file.
I don't know why your server started acting up after deleting log files, they are not tied to the os and only the latest one is active with iis at any one time.  Did you see anything strange in the event viewer?

No setting it daily, weekly.... does not save on disk space.
If you set it to weekly what happens is that the current iis log file will be active for one week and it will get larger than the dailys.  Normally not a big deal unless you have a lot of usage and if you ever have to open it to troubleshoot it will not be fun finding something.

No worries, Ive been in this business 20+ years and feel the same way sometimes.

Let me know if you need anything else or to clarify.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.