skip to Main Content

Enable circular logging Exchange 2016

We don’t recommend to enable circular logging in Exchange 2016. An excellent back-up system will truncate the database logs. What if the back-up didn’t work, and you need a solution before the disk size is getting full? This article will teach you how to enable circular logging with PowerShell and in Exchange Admin Center.

Should I enable circular logging in Exchange 2016?

When to enable circular logging and clear the database logs? For example:

  • The disk is getting full, and you are not able to expand the disk.
  • There are problems with the back-up software, and the logs are increasing.
  • Migrating mailboxes to that particular database.
  • The database is configured in a test environment.
Don’t forget to disable circular logging when you have configured the back-up, when placing the database in production or finished migration.

Before enabling circular logging

In our example, we are going to look at the default mailbox database. I recommend to rename and move the default database to another disk. Before doing that, configure ReFS volume on the disk.

We have 1.681 items in the folder. That’s around 1.68 GB in total size. How to clear the logs from a particular database?

Enable circular logging Exchange 2016 before enabling

In the next step, we are going to enable circular logging in Exchange mailbox database.

Enable circular logging Exchange 2016 in EAC

Log in to Exchange Admin Center (EAC). Go to servers and follow with databases at the top. Click the mailbox database and click the edit icon.

Click maintenance in the left panel and check the checkbox Enable circular logging. Click Save.

Enable circular logging Exchange 2016 enable

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

Enable circular logging Exchange 2016 warning remount

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

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.

Enable 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.

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

Enable circular logging Exchange 2016 warning mount

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

Results after enabling circular logging

Let’s go back to the Mailbox database folder and have a look at the logs.

Enable circular logging Exchange 2016 after enabling

All the database logs of that specific mailbox database are cleared successfully.

Enable circular logging Exchange 2016 with PowerShell

Run Exchange Management Shell as administrator. Check if circular logging is enabled on the mailbox database. We are going to use the Get-MailboxDatabase cmdlet.

Circular logging is disabled. We are going to use the Set-MailboxDatabase cmdlet and CircularLoggingEnabled parameter to enable circular logging.

A warning message will appear. The database needs to be remounted before circular logging changes are being applied. Let’s dismount the database and mount the database to have the changes being applied. Let’s verify the mount status after each command.

Conclusion

In this article, you learned how to enable circular logging Exchange 2016 with PowerShell and Exchange Admin Center. You also learned how to enable circular logging in Exchange Admin Center. Don’t forget to disable circular logging.

Did you enjoy this article? You may also like to read Create email address policy Exchange 2016. 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 *

Back To Top