Modifying Audit Service

Last updated: 2023-09-01 15:26:57

This document describes how to modify the audit service in the console.
Note
If you extend the retention period, the modification will take effect immediately. If you shorten the retention period, the logs that have been retained for longer than the new retention period will be cleared immediately.
If the data of the last n days is set to be stored in frequent access storage, older data will be automatically transitioned to infrequent access storage. After the frequent access storage period is extended, the audit data that falls in the extension period will be automatically migrated back from infrequent access storage to frequent access storage.

Preparations

You have enabled the audit service.

Modifying the audit service for one instance

1. Log in to the TencentDB for MySQL console.
2. On the left sidebar, select Database Audit.
3. Select Region at the top and click the Audit Instance tab. Then, click Audit Status, select Enabled to filter audit-enabled instances.
4. Find the target instance in the Audit Instance list, or search for it by resource attribute in the search box, and select More > Modify Audit Service in the Operation column.


5. On the Modify Audit Service page, modify the log retention period or frequent access storage period and click OK.



Batch modifying the audit service

1. Log in to the TencentDB for MySQL console.
2. On the left sidebar, select Database Audit.
3. Select a region at the top and click the Audit Instance tab. Then, click Audit Status, select Enabled to filter audit-enabled instances.
4. Find the target instances in the Audit Instance list, or search for them by resource attribute in the search box. Select multiple target instances in the Audit Instance list, and click Modify Audit Service above the list.


5. On the Modify Audit Service page, modify the log retention period or frequent access storage period and click OK.
Note
The Batch Modify Audit Service window displays the log retention periods both before and after the modification to make comparisons easier. The new log retention period will be applied to the selected instances. Therefore, proceed with caution.