Link to home
Start Free TrialLog in
Avatar of pdixit1977
pdixit1977Flag for India

asked on

How to remove IIS logs from Exchange 2007 CAS

Hello Experts,
I have small setup of Exchange 2007 servers with 1 Hub, 1 CAS and 2 Mailbox server in CCR. CAS and HUB are running on same server. We have 500 mailboxes in total with Outlook anywhere and activesync features running.

That infra was built around 2 years back and now CAS server is running low in free space, I found that IIS logs (C:\inetpub\logs\LogFiles\W3SVC1) consuming lots of space and having log files available since that infra was built.

Can i go ahead and remove old files which i dont need now OR there is a specific way to do this cleanup ?
How can i configure IIS to keep only 3 months logs ?
ASKER CERTIFIED SOLUTION
Avatar of R--R
R--R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pdixit1977

ASKER

Thanks R-R.

how can i configure IIS to keep only 3 months logs ?
What is the OS?
Windows 2008 Standard Edition 64 bit..
Go to IIS console and sites.
Default web site on right hand side you will see logging.

Or you can use script given in the article from serverfault.com.

http://serverfault.com/questions/65329/how-can-i-keep-iis-log-files-cleaned-up-regularly
I already go thru that option but didnt find a way to configure it to keep 3 months/90 days logs and keep purging others. I can restrict at file size but keeping all data in single log file is more problematic.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you need PS script with HTML report sent via email let me know.
thanks