The audit log feature is a pay-as-you-go service that is billed based on storage usage and the retention period. To change the retention period for all ApsaraDB for MongoDB instances in a specific region, use the ApsaraDB for MongoDB console. This topic describes how to change the audit log retention period.
Precautions
The retention period applies to all instances in the selected region. Confirm this change is appropriate for all of them before you proceed.
Audit logs are billed on a pay-as-you-go basis based on storage usage and the retention period. To avoid unnecessary costs, set a retention period that meets your business requirements.
Procedure
Log on to the ApsaraDB for MongoDB console.
Based on the instance type, click Replica Set Instances or Sharded Cluster Instances in the left-side navigation pane.
In the upper-left corner of the page, select the resource group and region of the target instance.
Find the target instance and click its ID, or click Manage in the Actions column.
In the left-side navigation pane, click .
In the upper-right corner of the page, click Service Settings.
In the Global Settings section of the Service Settings panel, change the retention period.
ImportantThis setting applies to all instances in the selected region.
To avoid unnecessary costs, set a retention period that meets your business requirements.
Click Confirm.
Related APIs
API | Description |
Enables or disables the audit log feature and sets the audit log retention period for an ApsaraDB for MongoDB instance. |