Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS logs files DONTLOG

Status
Not open for further replies.

moleboy

IS-IT--Management
Oct 10, 2002
33
GB
Hi,

I'm using IIS6 and getting huge log files (500M) each day and I'd like to remove logging of images and some other folders.
I've found this
<code>
set IISOBJ = GetObject("IIS://localhost/w3svc/1/root")
IISOBJ.DontLog = 1 ' Do not log requests.
set IIOBJ = nothing
</code>
I'm not sure where this will execute. Is there a log script I can add this too?

Anybody help???

Cheers

D

 
It logs or it doesn't log - you filter it when you analyze the output with a separate analyzer program or script.

If you have advanced logging turned on, you may want to turn it off, but you won't get as detailed of information.

The whole point of the log is to let you know everything going on with the site - it just means you have a lot of traffic. If you don't need the logs, turn it off; if you do, then clean them up regularly.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top