@@ -128,15 +128,31 @@ influxctl query \
128128
129129## Query log data and columns
130130
131- The ` query_log ` table in ` _internal ` includes information such as:
132-
133- - ** Status and phase** : ` success ` , ` running ` , ` phase ` (for example, received, planned, permit, success, fail, cancel).
134- - ** Identifiers** : ` id ` , ` namespace_id ` , ` namespace_name ` , ` query_type ` (for example, sql, influxql), ` auth_id ` , ` trace_id ` .
135- - ** Query content** : ` query_text ` , ` query_params ` .
136- - ** Timing** : ` time ` (timestamp), ` query_issue_time_ns ` , ` permit_duration_ns ` , ` plan_duration_ns ` , ` execute_duration_ns ` , ` end_to_end_duration_ns ` , ` compute_duration_ns ` .
137- - ** Resource usage** : ` partition_count ` , ` parquet_file_count ` , ` max_memory_bytes ` , and ingester-related fields.
138-
139- Durations are stored in nanoseconds (for example, ` compute_duration_ns ` , ` execute_duration_ns ` ).
131+ The ` query_log ` table in ` _internal ` includes the following columns:
132+
133+ | Column | Data type | Description |
134+ | :----- | :-------- | :---------- |
135+ | ** time** | timestamp | Timestamp when the query log entry was recorded |
136+ | ** id** | string | Unique identifier for the query |
137+ | ** namespace_id** | string | Internal identifier for the database |
138+ | ** namespace_name** | string | Name of the database where the query was executed |
139+ | ** query_type** | string | Type of query syntax used (` sql ` , ` influxql ` ) |
140+ | ** query_text** | string | The actual query statement text |
141+ | ** query_params** | string | Query parameters (if applicable) |
142+ | ** auth_id** | string | Database token ID used to authenticate the query |
143+ | ** trace_id** | string | Trace ID for debugging and monitoring |
144+ | ** success** | string | Query execution status (` 'true' ` or ` 'false' ` as string) |
145+ | ** running** | string | Indicates if query is currently running (` 'true' ` or ` 'false' ` as string) |
146+ | ** phase** | string | Current query phase (for example, ` received ` , ` planned ` , ` permit ` , ` success ` , ` fail ` , ` cancel ` ) |
147+ | ** query_issue_time_ns** | int64 | Time when the query was issued (nanoseconds) |
148+ | ** permit_duration_ns** | int64 | Time spent waiting for query permit (nanoseconds) |
149+ | ** plan_duration_ns** | int64 | Time spent planning the query (nanoseconds) |
150+ | ** execute_duration_ns** | int64 | Time spent executing the query (nanoseconds) |
151+ | ** end_to_end_duration_ns** | int64 | Total end-to-end query duration (nanoseconds) |
152+ | ** compute_duration_ns** | int64 | Compute time for the query (nanoseconds) |
153+ | ** partition_count** | int64 | Number of partitions accessed |
154+ | ** parquet_file_count** | int64 | Number of Parquet files read |
155+ | ** max_memory_bytes** | int64 | Maximum memory used during query execution (bytes) |
140156
141157
142158> [ !Note]
0 commit comments