

Parameter | Description |
Rule Template Name | Supports only digits, uppercase and lowercase letters, Chinese characters, and special characters -_./()[]()+=:@. Cannot start with a digit. Maximum 30 characters. |
Rule Content | Configure the rule content (parameter field, match type, feature string). For detailed configuration instructions, see the following Rule Content Details and Example introduction. Note: In the rule content section, you can click to add parameter fields. In the operation column under rule content, you can click to delete unwanted parameter fields and conditions. However, at least one parameter field and condition must be retained. |
Risk Level | Select a risk level for the new rule template. Supported options are low risk, medium risk, and high risk. |
Alarm Policy | Select an alarm policy for the new rule template. Supported options are do not send alarms and send alarms. Note: Go to TCOP -> Alarm Management to configure alarm rules and notifications. For details, see Configure Post-Facto Alarms. |
Rule Template Remarks | Supports only digits, uppercase and lowercase letters, Chinese characters, and special characters -_./()[]()+=:@. Cannot start with a digit. Maximum 200 characters. |
Parameter Field | Match Type | Characteristic String |
Client IP | Include, Exclude, Equal to, Not equal to, Regex | Configure up to 5 client IPs, separated by a vertical bar. |
User Account | Include, Exclude, Equal to, Not equal to, Regex | Configure up to 5 usernames, separated by a vertical bar. |
Database Name | Include, Exclude, Equal to, Not equal to, Regex | Configure up to 5 database names, separated by a vertical bar. |
SQL Details | Include, Exclude | Configure up to 5 SQL statements, separated by a vertical bar. |
SQL Type | Equal to, Not equal to | Available types: ALTER, CHANGEUSER, CREATE, DELETE, DROP, EXECUTE, INSERT, LOGOUT, OTHER, REPLACE, SELECT, SET, UPDATE, and PREPARE. Up to 5 SQL types can be selected. |
Affected Rows | >, < | Select the number of affected rows. |
Returned Rows | >, < | Select the number of rows returned. |
Scanned Rows | >, < | Select the number of rows scanned. |
Execution Time | >, < | Select the execution time, in milliseconds. |
Error Code | Equal to, Not equal to | Enter an error code. |
Lock Wait Time | >, < | Select the lock waiting time, in microseconds. |
IO Wait Time | >, < | Select the I/O waiting time, in nanoseconds. |
Transaction Duration | >, < | Select the transaction duration, in microseconds. |
CPU Time | >, < | Select the CPU time, in microseconds. |
Thread ID | Equal to, Not equal to | Enter a thread ID. |
Transaction ID | Equal to, Not equal to | Enter a transaction ID. Note: The field "Transaction ID" is supported by TXSQL version 2.1.11 and later, and TXSQL version 3.1.15 and later. Other versions do not support it. To enable support, upgrade to a supported version. |
API | Description |
This interface (CreateAuditRuleTemplate) is used to create audit rule templates. | |
This interface (DescribeAuditRuleTemplates) is used to query audit rule template information. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback