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
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
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.
In the navigation pane on the left, click .
On the Audit Logs page, click Service Settings in the upper-right corner.
In the panel that appears on the right, turn off the Audit Log switch in the Instance Settings section.
NoteYou 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.
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.