inetpub logfiles very large on Exchange Server 2013

My primary partition is running low on space due to the W3SVC1 and W3SVC2 folders under inetpud --> Logs --> LogFiles. Both of the folders are around 25GB in size. Can I safely remove some of these files or is there a better method to cleaning some of the log files up?

Thanks

April 1st, 2015 10:01am

Unfortunately Exchange 2013 creates alot of log files that it does not clean up on it's own.  While there isn't a way to tell Exchange to clean up the files after X number of days, there is a very helpful someone else has already written that does the work for you. He has 2 versions, 1 that you have to put on each individual server (I like that one in case I lose the server I put the script on) or 1 that you can run on 1 server that takes care of all of your Exchange Servers.

http://www.c7solutions.com/2013/04/removing-old-exchange-2013-log-files-html

Free Windows Admin Tool Kit Click here and download it now
April 1st, 2015 10:44am

So it looks as if these logs are mainly used for Troubleshooting.  I'm assuming I can safely zip the older log files up and move them to an archive location in case they need to be referenced correct?

In IIS it looks like you can change the directory of where log files are getting stored to another location.  Can I safely do? It wouldn't have any impact on Exchange?

Thanks!

April 2nd, 2015 8:54am

You can actually turn the logging completely off, if you don't think you'll need them. Then re-enable it when you need to do a bit of troubleshooting.

But if you want to just leave it enabled, and tell IIS to put them somewhere else having lots of free space, it will have no effect at all on Exchange.

Free Windows Admin Tool Kit Click here and download it now
April 2nd, 2015 9:33am

You can certainly move them, although I would not, and just run the script maybe once a month or once a week (depending on how much space you need) and have it leave the last 30 days of logs.  

I probably wouldn't turn off the logging, just bc if an issue occurs that is not readily/easily reproducible you lose the chance to capture the failure in a log file.  

April 2nd, 2015 9:49am

Can you actually explain your reasoning for not moving them?  If you are willing to delete them what would be the harm of  moving them to another location with more free space?  "You can do it but I wouldn't" doesn't make any sense without an explanation, unless you don't really know in the first place.
Free Windows Admin Tool Kit Click here and download it now
April 2nd, 2015 3:16pm

I wouldn't move them because I don't see a benefit to keeping the logs for a long period of time. I'm usually looking at current logs and almost never need to go back that far.  

 
April 2nd, 2015 4:39pm

That makes sense.
Free Windows Admin Tool Kit Click here and download it now
April 2nd, 2015 4:41pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics