Feb 16 2018 12:00 PM
I have a hybrid environment where all my mailboxes are in Exchange Online, but I have an on-premises Exchange Server 2016 server as my hybrid server to support mailbox management as well as multi-function devices (scanners) routing scanned documents via email to my cloud mailboxes.
No mailboxes are stored on the server. I do have Windows Server Backup running as an "Exchange aware" backup to truncate transaction logs, but what I am seeing is significant growth in IIS and other Exchange related logs that do not appear to be truncated by backups.
Is anyone aware of any best practices for maintaining log growth on a hybrid server? Because it is not hosting any mailboxes and simply acting as a relay to Exchange Online, the server is not configured with abundant resources.
Feb 17 2018 08:56 AM
SolutionHi Christopher,
This article could help you https://social.technet.microsoft.com/wiki/contents/articles/31117.exchange-2013-logging-clear-out-th...
Feb 19 2018 11:17 PM
Hi,
You could also take a look at this script to archive IIS logs:
https://practical365.com/exchange-server/powershell-script-iis-logs-cleanup/
https://gallery.technet.microsoft.com/office/IIS-Logs-Compress-and-3eb41a5b
Regards,
Joel
Feb 20 2018 05:35 AM
Thanks for the post. I was hoping there was an integrated way in Exchange to truncate or limit log growth, but if it's a manual (or scripted) process still, I guess it's better than nothing.
Feb 20 2018 06:05 AM
Hello Christopher,
There are some configurable settings on the Transport Service. When you run Get-TransportService | fl *MaxDirectorySize* you find the maximum directory size for some logging directories. You can change these settings with Set-TransportService.
You can also change the LogMaxAge for these different logging types. Get-TransportService | fl *LogMaxAge* shows the maximum log age for the different logging types. These settings can also be changed with Set-TransportService.
Besides those settings, you will still need to clean your IIS logs as suggested earlier.
Best regards,
Ruud Gijsbers
Feb 20 2018 06:43 AM
Raud,
Thanks for the post. Great information on controlling transport logs, but the logs that I see growing without an easy way to truncate are the performance and diagnostics logs outside of the transport service.
Feb 20 2018 10:51 PM
Christopher,
You're welcome. In addition to my previous post, you can follow the steps discussed in the link to disable the Performance and Diagnostic logging completely if you're not interested in the logs.
https://collaborationpro.com/exchange-2013-logging/
Otherwise you can schedule the script as discussed earlier to remain some logging.
Best regards,
Ruud Gijsbers