Avatar of Starr Duskk
Starr Duskk
Flag for United States of America asked on

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.

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

thanks!
Microsoft IIS Web ServerWindows Server 2003

Avatar of undefined
Last Comment
Jose Torres

8/22/2022 - Mon
Jose Torres

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 Duskk

ASKER
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?
%SystemDrive%\inetpub\logs\LogFiles
to:
S:\logs\LogFiles

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)

thanks!
ASKER CERTIFIED SOLUTION
Jose Torres

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy