This topic describes the fields in the SQL audit logs for PolarDB-X 1.0.
Field name | Field description |
| The log topic. The format is |
| The ID of the PolarDB-X 1.0 instance. |
| The name of the PolarDB-X 1.0 database. |
| The username used to execute the SQL statement. |
| The IP address of the client that accesses the PolarDB-X 1.0 instance. |
| The port of the client that accesses the PolarDB-X 1.0 instance. |
| The SQL statement that was executed. |
| The trace ID of the SQL execution. For a transaction, the ID is the trace ID followed by a |
| The hash value of the template SQL. |
| The hint for the SQL execution. |
| The total CPU time used for SQL execution. Unit: ns. |
| The total CPU time used to generate the execution plan. Unit: ns. |
| The total CPU time consumed to generate the execution plan, in ns. |
| The names of the tables involved in the query. Multiple table names are separated by commas (,). |
| The SQL type. Valid values: Select, Insert, Update, Delete, Set, Alter, Create, Drop, Truncate, Replace, and Other. |
| The name of the SQL Resolver. |
| The time when the SQL statement started to execute. The format is |
| The response time. Unit: milliseconds (ms). |
| The number of rows returned by the SQL execution.
|
| Indicates whether the SQL execution failed. A value of 0 indicates success. Other values indicate failure. |
| The number of record rows pulled from storage. |
| Indicates whether the execution failed due to an out of memory error. Valid values:
|
| The corresponding baseline ID in SQL Plan Management (SPM). |
| The corresponding execution plan ID in SPM. |
| The physical connection time for the SQL statement. Unit: ns. |
| The physical execution time for the SQL statement. Unit: ns. |
| The physical read time for the SQL statement. Unit: ns. |
| The total physical time for the SQL statement. This is the sum of the physical connection time and the physical execution time. Unit: ns. |