exchange 2010 enterprise

in our CAS servers, we are seeing  IIS logs filling up space

can anybody tell the reason also can we consider disabling IIS logging. any negative impact?
pramod1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

zvitamConsultantCommented:
It is a common issue in Exchange environment that IIS log in Exchange 2010 CAS server becomes very large when there are much Exchange service traffic from clients during the period. I suspect that there are many Exchange service requests from clients such as autodiscover, ActiveSync request in these days which caused the spike of IIS logs in the CAS server.

Actually IIS logs in Exchange 2010 CAS can be safely deleted if there are no client access problems in the Exchange 2010 environment.

I suggest you manually delete IIS log in CAS server or schedule a deletion using the below Powershell Script:

Get-childitem -Path C:\inetpub\logs\LogFiles\w3svc1 -recurse | where-object {$_.lastwritetime -lt (get-date).addDays(-7)} | Foreach-Object { del $_.FullName }

Note: You can alter the script to how many days old the log files can be and also your IIS log location. In this example, the Powershell script will delete IIS Log files older than 7 days that are in the “C:\inetpub\logs\LogFiles\w3svc1” directory.

For more details, you can refer to the following post from technet: how to control iis logs on cas server
1

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
pramod1Author Commented:
any modification to be done in this script or customization , I should create a ps1 script and put through task scheduler?
0
zvitamConsultantCommented:
This script should delete all logs older that a week.

If you want to schedule this script as task follow the instructions How to: Run PowerShell Scripts from Task Scheduler
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

pramod1Author Commented:
Upon checking, I see another log file  imap4 under ‘C:\Program Files\Microsoft\Exchange Server\V14\Logging’ which is having one month old data .this logs consumes 18 gb space. I am not sure whether we need to keep one month old data for this log.
0
Shaun VermaakTechnical Specialist/DeveloperCommented:
0
pramod1Author Commented:
can we delete IMAP logs
0
zvitamConsultantCommented:
The dafault retention period is 30 days, so logs older than that you can delete. you can delete logs as you like, but be aware of the fact that you will not have the logs in case of a problem or any other incident that may occur.
0
pramod1Author Commented:
The dafault retention period is 30 days- for imap logs??
0
zvitamConsultantCommented:
30 days retetion is for message tracking as for POP3/IMAP i don't know, and if you feel comfortable with that you can disable IMAP loggimg as long as you know that your user do not have problem related to it.
0
pramod1Author Commented:
how should I disable IMAP logging, can u show me the path-I think this will work
0
zvitamConsultantCommented:
see the following article ENABLE POP3 AND IMAP4 LOGGING

Disable should be the same - just put "false" instead of "true".
0
pramod1Author Commented:
I don't see command for IMAP
0
pramod1Author Commented:
Set-ImapSettings -Server "CAS01" -ProtocolLogEnabled $false I used this command
1
pramod1Author Commented:
after using this command Set-ImapSettings -Server "CAS01" -ProtocolLogEnabled $false  , I see still logs getting generated
0
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
Exchange

From novice to tech pro — start learning today.