skip to Main Content

Disable circular logging in Exchange Server

By default, circular logging in Exchange Server is disabled. We recommend keeping circular logging disabled. However, you may need to enable circular logging. An excellent backup system will truncate the database logs when it’s backing up the system. This article will learn how to disable circular logging with PowerShell and in Exchange Admin Center.

Disable circular logging Exchange in EAC

Sign in to Exchange Admin Center (EAC). In the feature pane, go to servers and follow with databases in the tabs. Select the mailbox database. Click the edit icon in the toolbar.

Disable circular logging Exchange 2016 find database

Click maintenance in the left panel and uncheck the checkbox Enable circular logging. Finish with Save.

Disable circular logging Exchange 2016 enable

A warning message will appear. The database needs to be dismounted and remounted before circular logging changes are applied. Click OK to close the warning message.

Warning
Circular logging parameter change will not be applied on this database before it is remounted. Dismount and remount database “Mailbox Database” in order to apply this parameter change.

Disable circular logging Exchange 2016 enable

Click the mailbox database and click the icon. Click Dismount.

Disable circular logging Exchange 2016 dismount database

A warning will show up with the question if you are sure to dismount the mailbox database? Verify the name of the mailbox database and click Yes.

Disable circular logging Exchange 2016 warning dismount

Have a look at the STATUS and verify that the mailbox database is Dismounted.

Mount the database. Click the and click Mount.

Disable circular logging Exchange 2016 mount database

A warning message will appear if you are sure to mount the mailbox database. Verify that it’s the correct mailbox database and click Yes.

Disable circular logging Exchange 2016 warning mount

Have a look at the STATUS and verify that the mailbox database is mounted.

Disable circular logging Exchange with PowerShell

Run Exchange Management Shell as administrator. Check if circular logging is disabled on the mailbox database. We will run the Get-MailboxDatabase cmdlet.

The output shows that circular logging is enabled.

[PS] C:\>Get-MailboxDatabase "Mailbox Database 1237333779" | Format-Table Name, CircularLoggingEnabled

Name                        CircularLoggingEnabled
----                        ----------------------
Mailbox Database 1237333779                  True

We will run the Set-MailboxDatabase cmdlet and CircularLoggingEnabled parameter to disable circular logging.

[PS] C:\>Set-MailboxDatabase "Mailbox Database 1237333779" -CircularLoggingEnabled $False
WARNING: Circular logging parameter change will not be applied on this database before it is remounted. Dismount and remount database "Mailbox Database 1237333779" in order to apply this parameter change.

After running the command, a warning message will appear. The database needs to be remounted before circular logging changes are applied.

Warning
Circular logging parameter change will not be applied on this database before it is remounted. Dismount and remount database “Mailbox Database” in order to apply this parameter change.

Let’s dismount the database and mount the database to have the changes applied. Let’s verify the mount status after each command.

[PS] C:\>Dismount-Database "Mailbox Database 1237333779" -Confirm:$False

[PS] C:\>Get-MailboxDatabase "Mailbox Database 1237333779" -Status | Format-Table Name, Mounted

Name                        Mounted
----                        -------
Mailbox Database 1237333779   False

[PS] C:\>Mount-Database "Mailbox Database 1237333779" -Confirm:$False

[PS] C:\>Get-MailboxDatabase "Mailbox Database 1237333779" -Status | Format-Table Name, Mounted

Name                        Mounted
----                        -------
Mailbox Database 1237333779    True

That’s it. Everything looks great.

Keep reading: Move all mailboxes from one database to another »

Conclusion

You learned how to disable circular logging in Exchange Server with PowerShell. You also learned how to disable circular logging in Exchange Admin Center. Don’t forget to remount the mailbox database before the change takes effect.

Did you enjoy this article? You may also like to read Move Exchange database to another drive. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *