If you no longer need the audit log feature, you can disable the feature. This topic describes how to disable the free trial edition or the official edition of the audit log feature.

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] On official launch of the pay-as-you-go audit log feature and no more application for the free trial edition.

Precautions

  • After you disable the free trial edition of the audit log feature, you cannot enable it again. If you want to use the audit log feature after you disable it, you can only enable the official edition. For more information, see Enable the audit log feature.
  • To avoid loss of existing audit logs, we recommend that you download audit logs before you disable the free trial edition or the official edition. For more information about how to download audit logs, see Download audit logs.

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances based on the instance type.
  3. In the upper-left corner of the page, select the resource group and region to which the instance belongs.
  4. Click the ID of an instance, or click More icon in the Actions column corresponding to the instance and select Manage.
  5. In the left-side navigation pane of the instance details page, choose Data Security > Audit Logs.
  6. On the Audit Logs page, click Service Settings in the upper-right corner.
    Note After you disable the free trial edition of the audit log feature, you cannot enable it again. If you want to use the audit log feature after you disable it, you can only enable the official edition. For more information, see Enable the audit log feature.
  7. In the Service Settings pane, turn off the Audit Logs switch and click OK.

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