Thanks for the replies. I've decided to go with maintaining 7 days worth of
logs courtesy of a PS script to rotate them nightly. I've tested the following
and seems to work:
get-childitem -Path C:\inetpub\logs\LogFiles -recurse | where-object
{$_.lastwritetime -lt (get-date).addDays(-7)} | Foreach-Object { del
$_.FullName }
Daniel.
From: [email protected] [mailto:[email protected]] On
Behalf Of Russ Rimmerman
Sent: Wednesday, 27 August 2014 1:00 PM
To: [email protected]
Subject: [mssms] RE: Cleaning up IIS logs
They're very handy to have for troubleshooting, I recommend implementing a
script (powershell is easiest imho) to clean them up after x days vs disabling
them.
From: [email protected] [mailto:[email protected]] On
Behalf Of Corkill, Daniel
Sent: Tuesday, August 26, 2014 7:36 PM
To: [email protected]
Subject: [mssms] Cleaning up IIS logs
My site server is filling up with IIS logs and I've come across an article
stating there are two options for dealing with this: implement a script which
maintains 7 days worth of IIS logs and deletes the rest, or, simply disable IIS
logging. Just wanted to run these options by everyone to see what others are
doing. Personally I've never accessed the IIS logs so I'm inclined to just
disable logging (unless there's an important reason not to).
Daniel.
*********************************************************************
This email, including any attachment, is confidential to the intended
recipient. It may also be privileged and may be subject to copyright. If you
have received this email in error, please notify the sender immediately and
delete all copies of the email. Any confidentiality or privilege is not
waived. Neither the Council nor the sender warrant that this email does not
contain any viruses or other unsolicited items.
This email is an informal Council communication. The Council only accepts
responsibility for information sent under official letterhead and duly signed
by, or on behalf of, the Chief Executive Officer.
Privacy Collection Notice
Logan City Council may collect your personal information, e.g. name,
residential address, phone number etc, in order to conduct its business and/or
meet its statutory obligations. The information will only be accessed by
employees and/or Councillors of Logan City Council for Council business related
activities only. If your personal information will be passed onto a third
party, Council will advise you of this disclosure, the purpose of the
disclosure and reason why. Your information will not be given to any other
person or agency unless you have given us permission or we are required by law.
*********************************************************************
This email, including any attachment, is confidential to the intended
recipient. It may also be privileged and may be subject to copyright. If you
have received this email in error, please notify the sender immediately and
delete all copies of the email. Any confidentiality or privilege is not
waived. Neither the Council nor the sender warrant that this email does not
contain any viruses or other unsolicited items.
This email is an informal Council communication. The Council only accepts
responsibility for information sent under official letterhead and duly signed
by, or on behalf of, the Chief Executive Officer.
Privacy Collection Notice
Logan City Council may collect your personal information, e.g. name,
residential address, phone number etc, in order to conduct its business and/or
meet its statutory obligations. The information will only be accessed by
employees and/or Councillors of Logan City Council for Council business related
activities only. If your personal information will be passed onto a third
party, Council will advise you of this disclosure, the purpose of the
disclosure and reason why. Your information will not be given to any other
person or agency unless you have given us permission or we are required by law.