All Products
Search
Document Center

ApsaraDB for MongoDB:Disable the audit log

Last Updated:Aug 15, 2025

If you no longer need the ApsaraDB for MongoDB audit log, you can disable it. This topic describes how to disable the free trial or official version of the audit log.

Prerequisites

Before the official launch of the audit log feature, the free trial edition was activated for the instance.
Note Starting from January 6, 2022, the official edition of the audit log feature has been launched in all regions, and new applications for the free trial edition have ended. For more information, see [Notice] Official launch of the pay-as-you-go audit log feature and no more application for the free trial edition.

Usage notes

  • You cannot re-enable the free trial version of the audit log after you disable it. To use the audit log feature again, you must enable the official version. For more information, see Enable the audit log.

  • To prevent the loss of existing audit log data, download the audit logs before you disable the free trial or official version. For more information, see Download audit logs.

Procedure

  1. Go to the MongoDB replica set instances or MongoDB sharded cluster instances page. At the top of the page, select a resource group and a region. Then, click the ID of the target instance.

  2. In the navigation pane on the left, click Data Security > Audit Logs.

  3. On the Audit Logs page, click Service Settings in the upper-right corner.

  4. In the panel that appears on the right, turn off the Audit Log switch in the Instance Settings section.

    Note

    You cannot re-enable the free trial version of the audit log after you disable it. To use the audit log feature again, you must enable the official version. For more information, see Enable the audit log.

  5. Click OK.

    When the instance status changes from Disabling Audit Logs to Running, the free trial or official version of the audit log is disabled.