

Parameter | Description |
Task Name | Enter a task name. It supports only digits, uppercase and lowercase letters, Chinese characters, and special characters: _-./()[]()+=:@, and the length cannot exceed 60. |
Instance Source | Select an instance source: Tencent Cloud instance Public Instance |
Parameter | Description |
Instance Type | Default: cloud database TDSQL-C for MySQL. |
Region | Select the region of the source instance. |
Instance | Select an instance within the region of the source instance. Only instances with full audit/rule audit enabled are supported for selection. It is recommended to enable full audit. Ensure that the database audit is enabled from the start time to the end time of the replay. |
Data cleansing | Enabled by default. It cleans and filters incomplete, erroneous, or redundant data in logs, sorts the audit logs, and ensures the accuracy of traffic replay. |

Parameter | Description |
Region | Select the region for external instance replay, which refers to the region where the COS bucket is located. The files involved in the replay are the audit logs stored in the COS bucket of the specified region. |
Audit Log File | After you have the CynosDB_QCSLinkedRoleInAuditReplayForCos permission, you can click Select COS File to choose the audit log file. |
Data cleansing | Enabled by default. It cleans and filters incomplete, erroneous, or redundant data in logs, sorts the audit logs, and ensures the accuracy of traffic replay. |

Parameter | Description |
Instance Type | Set the instance type for the target instance. Default: cloud database TDSQL-C for MySQL. |
Region | Select the region of the target instance. |
Instance | Select the target instance within the selected region. |
Account Name | Enter the account name for the connection. Note: The target account must have the highest privileges. |
Password | Enter the password for the connection account. |

Parameter | Description |
Traffic Replay Scope | Select the time range for traffic replay based on the time within the audit log cycle. The replay is supported from the first audit log to the last. If there are missing logs in between, they are automatically skipped during replay, requiring no manual handling. First, select the date range, and then set the specific time. Ensure that the database audit is enabled from the start time to the end time of the replay. |
Slow SQL threshold for source instance | When the source instance is TDSQL-C for MySQL, the system automatically obtains the source instance's slow SQL threshold. When the source instance is an external instance, there is no slow SQL threshold for the source instance. |
Slow SQL threshold for target instance | Set the slow SQL threshold for the target instance. You can customize the value. Unit: millisecond. This setting affects the statistical scope of slow SQL statements in the report. |
Task Start Time | Execute now: Execute immediately after creation. Scheduled Execution: Set a future time point to automatically trigger task execution. It is recommended to schedule this during off-peak hours. |

Check Item | Check Content | Action on Failure |
Source Instance Availability Check | Check whether the source instance is in a running state. Check whether the IP address port of the source instance is accessible. | Confirm that the instance status is normal. |
Check instance audit enabled status | Check whether full audit/rule audit is enabled for the source instance. Check whether audit logs can be found within the specified time range. | Confirm that auditing is enabled and logs are not expired. |
Target instance availability check | Check whether the target instance is successfully built and its status is Running. Check whether the IP address port of the target instance is accessible. Check whether the auto-pause feature is enabled for the target Serverless instance. If it is enabled, the pre-check will fail. | Confirm that the instance status is normal and ensure that auto-pause is disabled for the Serverless instance. |
Target Instance Task Conflict Check | Whether other conflicting tasks exist on the target instance. | Complete other conflicting tasks before retrying. |
Check target account validity | Check whether the target account can be logged into correctly. Check whether the target account is valid. | Check whether the connection account and password are correct. Check whether the connection account has been created. |
Check target account permission | Whether the target account has the highest permissions (with full database read/write capabilities). | Switch to an account with higher permissions or grant permissions to the current account. |
Mandatory Field Name | Description |
timestamp | SQL statement execution timestamp (microseconds) |
nsTime | SQL statement execution timestamp (microseconds, for precise ordering) |
threadId | Thread ID, the basis for transaction association |
execTime | SQL statement execution time (microseconds) |
errCode | Original execution error code |
dbName | Database name where the SQL statement resides |
sql | Complete SQL statement |
Optional Field Name | Description |
checkRows | Scanned rows, reflecting index usage efficiency |
affectRows | Affected rows, reflecting the scope of DML operations |
sentRows | Returned rows, reflecting the size of the result set |
lockWaitTime | Lock waiting time (microseconds), reflecting lock contention |
cpuTime | CPU execution time (nanoseconds) |
ioWaitTime | IO waiting time (microseconds) |
trxLivingTime | Transaction duration (microseconds) |
sqlType | SQL operation type (SELECT, INSERT, UPDATE, and so on) |
Status | Description | Solution |
Passed. | The check is normal. | No action required |
Missing but ignorable | Optional fields are missing, but this does not affect playback. | Proceed directly |
Failed | Blocking issues exist. | Fix according to the handling suggestion, and then click Recheck. |
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