This document describes how to modify the Audit Service through the console.
Note:
If you choose to extend the log retention period, the change will take effect immediately. If you choose to shorten the log retention period, logs that have exceeded the retention period will be purged immediately.
If you set the recent n days of data to be stored in high-frequency storage, data beyond the recent n days will be automatically moved to low-frequency storage. After the high-frequency storage period is extended, audit data meeting the retention period will be automatically migrated from low-frequency storage to high-frequency storage.
Prerequisites
Modify Audit Service for a Single Instance
2. In the left sidebar, select Database Audit.
3. Select a region at the top. On the Audit Instance page, click Audit Log Storage Status and select the Enabled option to filter for instances with the audit service enabled.
4. Locate the target instance in the Audit Instance list (or quickly find it by filtering with resource attributes in the search box), and in its Operation column, choose More > Modify Audit Service.
5. On the Modify Audit Service page, after the Log Retention Period or Frequent Access Storage Period are modified, click OK.
Batch modify the audit service
2. In the left sidebar, select Database Audit.
3. Select a region at the top. On the Audit Instance page, click Audit Log Storage Status and select the Enabled option to filter for instances with the audit service enabled.
4. Locate the target instance in the Audit Instance list (or quickly find it by filtering with resource attributes in the search box). On the Audit Instance list page, select multiple target instances and click Modify Audit Service at the top.
5. On the Modify Audit Service page, after modifying the Log Retention Period or Frequent Access Storage Period, click OK.
Note:
For easy comparison, the batch modification audit service page displays the log retention period before and after modification. After the modification is performed, the selected instances will uniformly start adjusting according to the new log retention period. Please confirm that everything is correct before proceeding with the modification.