diff --git a/content/enterprise_influxdb/v1/administration/configure/config-data-nodes.md b/content/enterprise_influxdb/v1/administration/configure/config-data-nodes.md index 4a6e54d9a9..c4905f9d2c 100644 --- a/content/enterprise_influxdb/v1/administration/configure/config-data-nodes.md +++ b/content/enterprise_influxdb/v1/administration/configure/config-data-nodes.md @@ -1028,6 +1028,27 @@ Determines whether the Flux query endpoint is enabled. To enable the use of Flux Environment variable: `INFLUXDB_HTTP_FLUX_ENABLED` +#### flux-log-enabled + +Default is `false`. + +Determines whether detailed logs for Flux queries are enabled. +When set to `true`, InfluxDB logs detailed information about Flux queries, including: + +- `compiler_type`: Compiler used for processing the query (typically Flux). +- `response_size`: Size of the response, in bytes. +- `query`: The textual representation of the query. +- `err`: Errors encountered while processing the query. +- `stat_total_duration`: Total duration to process the query. +- `stat_compile_duration`: Duration to compile the query. +- `stat_execute_duration`: Duration to execute the query. +- `stat_total_allocated`: Total allocated memory for the query. + +To enable Flux logging, both `flux-enabled` and `flux-log-enabled` must be set to `true`. +For more information about InfluxDB logging, see [Log and trace with InfluxDB Enterprise](/enterprise_influxdb/v1/administration/logs/). + +Environment variable: `INFLUXDB_HTTP_FLUX_LOG_ENABLED` + #### bind-address Default is `":8086"`. diff --git a/content/influxdb/v1/administration/config.md b/content/influxdb/v1/administration/config.md index 3930a5395b..d815c3f1f7 100644 --- a/content/influxdb/v1/administration/config.md +++ b/content/influxdb/v1/administration/config.md @@ -784,6 +784,26 @@ Flux queries, set the value to `true`. **Default**: `false` **Environment variable**: `INFLUXDB_HTTP_FLUX_ENABLED` +#### flux-log-enabled + +Determines whether detailed logs for Flux queries are enabled. +When set to `true`, InfluxDB logs detailed information about Flux queries, including: + +- `compiler_type`: Compiler used for processing the query (typically Flux). +- `response_size`: Size of the response, in bytes. +- `query`: The textual representation of the query. +- `err`: Errors encountered while processing the query. +- `stat_total_duration`: Total duration to process the query. +- `stat_compile_duration`: Duration to compile the query. +- `stat_execute_duration`: Duration to execute the query. +- `stat_total_allocated`: Total allocated memory for the query. + +To enable Flux logging, both `flux-enabled` and `flux-log-enabled` must be set to `true`. +For more information about InfluxDB logging, see [Log and trace with InfluxDB](/influxdb/v1/administration/logs). + +**Default**: `false` +**Environment variable**: `INFLUXDB_HTTP_FLUX_LOG_ENABLED` + #### bind-address {#http-bind-address} The bind address (port) used by the HTTP service.