• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 35
  • Last Modified:

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?
0
pramod1
Asked:
pramod1
  • 8
  • 5
1 Solution
 
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
 
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
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 8
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now