If you no longer need the audit log feature, you can timely disable this feature to reduce costs. This topic describes how to disable the audit log feature.
Prerequisites
The audit log feature is enabled. For more information, see Enable the audit log feature.
Procedure
Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region in which the instance resides. Then, find the instance and click the ID of the instance.
In the left-side navigation pane of the instance details page, choose .
In the upper-right corner, click Service Settings.
In the Instance Settings section of the Service Settings panel, turn off Audit Logs.
NoteAfter the audit log feature is disabled, audit logs of the ApsaraDB for MongoDB instance are not uploaded. Existing audit logs are not affected and are deleted after they expire.
Click OK.
Related API operations
Operation | Description |
Checks whether the audit log feature is enabled for an ApsaraDB for MongoDB instance. | |
Enables the audit log feature for an ApsaraDB for MongoDB instance and sets a retention period for audit logs, or disables the audit log feature for an ApsaraDB for MongoDB instance. |