tencent cloud

TDSQL Boundless

QUERY_AUDIT_LOG

Download
Focus Mode
Font Size
Last updated: 2026-05-26 15:30:41

Function

QUERY_AUDIT_LOG queries the audit log information of TDSQL Boundless databases. By default, it aggregates the audit logs from all Hyper Nodes.

Field Description

Field Name
Type
Description
name
varchar(65535)
SQL statement type
timestamp
timestamp
Statement execution time
status
longlong
Statement execution status
trans_id
longlong
Transaction ID to which the statement belongs
tid
longlong
Thread ID of statement execution
last_error_tdstore
varchar(65535)
Last error information related to TDStore
proxy_executor
varchar(65535)
Proxy target node name
user
varchar(65535)
Database username of the user who performed the operation
host
varchar(65535)
Database server hostname
client_host
varchar(65535)
Client hostname or IP address
db
varchar(65535)
Name of the database involved in the operation
affected_rows
longlong
Number of affected rows
result_rows
longlong
Number of rows returned by the query result
examined_rows
longlong
Number of rows scanned and examined
in_tx
longlong
Whether executed within a transaction
query_tc
double
Total query time
lock_tc
double
Lock wait time
rpc_tc
double
RPC call time
tdstore_rpc_tc
double
TDStore RPC call time
tdstore_lock_tc
double
TDStore lock wait time
sqlsize
longlong
SQL statement size
sqltext
varchar(65535)
SQL statement text
sqldigest
varchar(65535)
SQL statement digest
error_info
varchar(65535)
Detailed error information

Examples

tdsql > SELECT * FROM INFORMATION_SCHEMA.QUERY_AUDIT_LOG WHERE name = 'Query' LIMIT 1\\G
*************************** 1. row ***************************
name: Query
timestamp: 2025-11-29 23:55:23
status: 0
trans_id: 0
tid: 1048610
last_error_tdstore:
proxy_executor:
user: tdsql3_sys_remote
host:
client_host: 127.0.0.1:53360
db: information_schema
affected_rows: 0
result_rows: 0
examined_rows: 0
in_tx: 0
query_tc: 0.000076
lock_tc: 0
rpc_tc: 0
tdstore_rpc_tc: 0
tdstore_lock_tc: 0
sqlsize: 14
sqltext: SET NAMES utf8
sqldigest:
error_info:
1 row in set, 1 warning (0.29 sec)

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback