question

EMR-7475 avatar image
0 Votes"
EMR-7475 asked ·

Exchange 2019 Logs Keep Growing

I am running Exchange Server 2019 CU6 on Windows Server 2019. I have enabled circular logging, but the log files consume over 43Gb storage. I opened the Exchange Management Shell, ran the command Get-MailboxDatabase -Identity Store1 | fl circ" to confirm that circular logging is enabled. I will be running short of disk space. Any idea why the logs continue to grow, or how I can safely delete them to reclaim disk space? Thanks.

office-exchange-server-administrationoffice-exchange-server-itpro
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndyDavid1608 avatar image
0 Votes"
AndyDavid1608 answered ·

Ok, then you are seeing the diag logs taking space and not the transaction logs, which is good

Nothing built-in to clear those, but you can remove manually or use something like:

https://gallery.technet.microsoft.com/office/Clear-Exchange-2013-Log-71abba44

https://gallery.technet.microsoft.com/office/Using-PowerShell-Task-633dd513

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndyDavid1608 avatar image
0 Votes"
AndyDavid1608 answered ·

Can you verify which logs you are referring to? What is the name of these logs.

P.S. You can use this technique to remove manually, but that should only be a last resort as it requires a dismount of the database:
https://www.msp360.com/resources/blog/exchange-truncate-logs/

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EMR-7475 avatar image
0 Votes"
EMR-7475 answered ·

The size of the folder located in C:\Program Files|Microsoft Exchange Server\V15\Logging is over 43Gb on one server but only 1Gb on my other Exchange server. The first server is starting to run out of disk space. I could reclaim much disk space if I could eliminate most of those 43Gb.

Thanks for the link. I tried the Diskshadow command but have not noticed a change. I will try rebooting the Exchange server at an off hour.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndyDavid1608 avatar image
0 Votes"
AndyDavid1608 answered ·

Ok, most likely those arent the Exchange transaction logs then, but rather the internal Exch Diag logs. Those should be trimming themselves automatically after 30 days max. If not, you can remove older ones to free up space without rebooting.

Verify where the actual Exchange transaction logs are:

Get-MailboxDatabase | fl Name,EdbFilePath,LogFolderPath

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EMR-7475 avatar image
0 Votes"
EMR-7475 answered ·

Andy---

I appreciate your help. I ran the cmdlet, which responded:
Name : Mail1
EdbFilePath : C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 0087204083\Mailbox Database
0087204083.edb
LogFolderPath : C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 0087204083

(I removed the detail for the other server which does not have this issue.)

The folder that is taking up the 43Gb is C:\Program Files\Microsoft\Exchange Server\V15\Logging. What can I delete from this folder (and subfolders) to reclaim disk space? Is there any Exchange cmdlet to flush the diagnostics?

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You could refer to this article to get more information about Exchange Logging: Clearing Log files


0 Votes 0 ·