Exchange 2019 Logs Keep Growing

EMR 171 Reputation points
2020-07-21T06:54:03.833+00:00

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.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,353 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David 701 Reputation points
    2020-07-21T14:30:53.947+00:00

    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

    0 comments No comments

4 additional answers

Sort by: Newest
  1. EMR 171 Reputation points
    2020-07-21T14:25:05.41+00:00

    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?


  2. Andy David 701 Reputation points
    2020-07-21T13:34:59.71+00:00

    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

    0 comments No comments

  3. EMR 171 Reputation points
    2020-07-21T13:26:35.073+00:00

    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.

    0 comments No comments

  4. Andy David 701 Reputation points
    2020-07-21T10:56:27.773+00:00

    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/

    0 comments No comments