Disable the audit log

更新时间:
复制 MD 格式

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

Prerequisites

Before you begin, ensure that you have:

  • An ApsaraDB for MongoDB instance with audit logging enabled (free trial edition activated before January 6, 2022)

Note

Starting January 6, 2022, the pay-as-you-go audit log feature launched in all regions and new free trial applications ended. For details, see [Notice] Official launch of the pay-as-you-go audit log feature and end of free trial applications.

Precautions

  • After you disable the free trial edition of the audit log, you cannot re-enable it. If you need to use the audit log again, you must enable the official edition. For more information, see Enable the audit log.

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

Steps

  1. Navigate 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 target instance ID.

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

  3. On the Audit Log 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

    After you disable the free trial edition of the audit log, you cannot re-enable it. If you need to use the audit log again, you must enable the official edition. For more information, see Enable the audit log.

  5. Click Confirm.

    When the instance status changes from Audit log closing to Running, the audit log is disabled.