

Category | Search filter options |
Security AND operation trace | Username, server login name, session login name, Client hostname, Database Name, Command, access object, Object Type, Database ID, Process database ID, object ID, Transaction ID, Thread ID. |
Performance and Resource Consumption | Affected Rows, Lastly, the statement affects the number of rows, execution time (us), CPU time (us), logical read, Physical read, I/O write. |
Error and exception monitoring | error code, Error Status, severity, Error Message, Error Category, Error subject. |
Tool | Description |
Refreshing | Click ![]() |
Customize List Fields | Click ![]() |
Download | Click ![]() ![]() |
File List | Click ![]() ![]() Currently, only Tencent Cloud private network addresses are provided for downloading log files. You can download files via a Tencent Cloud CVM instance in the same region. (For example, to download the audit logs of a database instance in the Beijing region, use a CVM instance in the Beijing region.) Log files are valid for 24 hours. You should download them promptly. The number of log files for each database instance should not exceed 30. You need to delete the log files after download. If the displayed status is Failed, there may be too many logs. You can narrow the time range to download log files in batches. |
search items | Matching items | Description |
SQL text | Precision including Blurry included Precision excluding Blurry excluded | Enter SQL text. Multiple entries should be separated by line breaks. The default matching option is: Exact match - OR. Matching Rule Description Case-insensitive. "Precision including" means each keyword in the SQL command details must be matched precisely. For example: when the SQL text is "SELECT * FROM test_db1 join test_db2 LIMIT 1;", in exact match mode you can use keywords like: "SELECT", "select * from", "SELECT * FROM test_db1 join test_db2 LIMIT 1;", or "from Test_DB1" for matching. However, keywords like "SEL", "sel", or "test" cannot be used for matching. "Blurry included" means each keyword in the SQL command details can be matched approximately. For example: when the SQL text is "SELECT * FROM test_db1 join test_db2 LIMIT 1;", in fuzzy match mode you can use keywords like: "SEL", "sel", "test", or "DB" for matching. "Precision excluding" means each keyword in the SQL command details must be precisely excluded. For example: when the SQL text is "SELECT * FROM test_db1 join test_db2 LIMIT 1;", in exact exclusion mode you can input "SELECT" to filter out logs that do not contain SELECT. "Blurry excluded" means each keyword in the SQL command details can be approximately excluded. For example: when the SQL text is "SELECT * FROM test_db1 join test_db2 LIMIT 1;", in fuzzy exclusion mode you can input "SEL", "sel", or "select" to filter out logs that do not contain SELECT. "OR" indicates a "union" relationship between different keywords. For example: entering "test_db1" and "test_db2" will retrieve all logs containing either "test_db1" or "test_db2". "AND" indicates an "intersection" relationship between different keywords. For example: entering keywords like "SELECT" and "test_db" will retrieve all logs containing both "SELECT" and "test_db". |
Execution statement. Username. Server Login Name Session Login Name Client Host Name Database Name Access Object Object Type Error Message Error Category Error Subject. | Precision including Blurry included Precision excluding Blurry excluded | Enter keywords, separating multiple keywords with line breaks. The default matching option is: Exact Match. |
Database ID Process Database ID Object ID Error Code Error Status Severity Transaction ID. Thread ID | Equal to Not equal to | Please enter keywords, separated by line breaks. The default matching item is: Equals. Matching Rule Description "Equals" means each keyword in the search term requires an exact match. For example: when the database ID is 10, you can match it using the keyword "10" in Equals mode, but it will not match using the keywords "1" or "0". "Not equal to" means each keyword in the search term requires precise exclusion. For example: when the database ID is 10, using the keyword "10" in Not equal to mode will exclude logs where the database ID is 10. |
Number of Affected Rows Last Statement Affected Rows Execution Time (us) CPU Time (us) Logical Reads Physical Reads I/O Write | Range Format | The format is M-N, for example: 10-100. |
No. | Field Name | Field Description |
1 | Time | Timestamp. The time when the log is generated, accurate to the millisecond, in the format: 2025-08-28 19:52:36.104. |
2 | Username | Username of the executing user. |
3 | server login name | Server Principal. |
4 | session login name | Server Principal Name of the session that initiated the triggered event. |
5 | Client hostname | Client host name. |
6 | Client Application Name | Client application name. |
7 | Database Name | Current database name or connected database name. |
8 | SQL text | - |
9 | Command | The statement text that triggered the event, or the statement text run by an application through calling remote services (RPC). |
10 | access object | The name of the object (for example: table, view, stored procedure, etc.) that owns the execution statement, or the name of the object referenced by RPC. |
11 | Object Type | Type of program unit (for example: stored procedure, function, etc.) that has executed. |
12 | Returned values | Return value of RPC. |
13 | Affected | The number of rows returned by RPC or affected by the execution statement. |
14 | Lastly, the state | Last Affected Rows Count. |
15 | execution time (us) | Time elapsed since user login (μs). Execution Time (μs). RPC Completion Time (μs). |
16 | CPU time (us) | CPU time consumed by the user during this session (μs). CPU Time Consumed by Statement Execution (μs). |
17 | logical read | Logical Page Read Count during Session. Logical Page Reads Issued by RPC. Logical Page Reads Issued by Executed Statement. |
18 | Physical read | Physical Page Reads Issued by the User during Session. Physical Page Reads Issued by RPC. Physical Page Read Count by Executed Statement. |
19 | I/O write | Page Writes Issued by the User during Session. Number of Page Writes by Executed Statement Page Writes Issued by RPC. |
20 | error code | - |
21 | Error Status | - |
22 | severity | - |
23 | Error Message | - |
24 | Error Category | - |
25 | Error Category | - |
26 | whether user-defined | This field indicates whether the error is a user-defined error (true) or a system error (false). |
27 | whether captured | This field indicates whether the error is caught by the Transact-SQL TRY/CATCH block. |
28 | Execution Plan Parameters | Plan handle for the plan cache entry of a parameterized query. |
29 | Database ID | Database ID or the ID of the current database. |
30 | Process database ID | This field contains the database ID of the module (for example: stored procedures, functions, etc.) to which the statement that has been executed belongs. |
31 | object ID | This field contains the ID of the module (for example: stored procedures, functions, etc.) to which the statement that has been executed belongs. |
32 | Transaction ID | In storage engines that support transactions, each transaction has a unique transaction ID, which is used to identify the specific transaction. |
33 | Thread ID | Current system thread ID. |
34 | Output Parameter (xml) | Output parameters returned by RPC. |
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