Modifying Audit Rule

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

This document describes how to modify the audit rule in the console.

Preparations

You have enabled the audit service.

Note

The audit rule can be changed from full audit to rule-based audit or vice versa.
After the audit rule is modified, the modification will be applied to the selected instance.
You’re allowed to modify the rule type, parameter field, operator, and characteristic string for an audit rule. You can add or remove the items but must keep at least one of them. For detailed directions, see Enabling Audit Service > Set the audit rule.

Modifying the audit rule 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 Rule in the Operation column.


5. In the Modify Audit Rule page, modify the audit rule and click OK.

Batch modifying the audit rule

Note
The audit rule can be changed from full audit to rule-based audit or vice versa.
After the audit rule is batch modified, the selected instances will be uniformly adjusted according to the new audit rule.
You’re allowed to modify the rule type, parameter field, operator, and characteristic string for an audit rule. You can add or remove the items but must keep at least one of them. For detailed directions, see Enabling Audit Service > Set the audit rule.
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 clusters/instances in the Audit Instance list, or search for them by resource attribute in the search box, and select them. Then, click Modify Audit Rule above the list.


5. In the Modify Audit Rule page, modify the audit rule and click OK.
Note
The Batch Modify Audit Rule window displays the audit rules both before and after the modification to make comparisons easier. The new rules will be applied to the selected instances. Therefore, proceed with caution.