influxd print-config

The influxd print-config command prints a full InfluxDB configuration resolved from the current influxd environment. The command formats output as YAML.

Use influx CLI server-config

influxd print-config is deprecated in InfluxDB v2.2.

To display the runtime server configuration, use the influx server-config command or the /api/v2/config InfluxDB API endpoint. For more information, see how to view your server configuration.

influxd print-config does not output the configuration of the running server. Rather, it evaluates the current environment, config file, and flags passed to the influxd print-config command. It is unaware of configuration options passed to the influxd command at runtime.

For example, with the following configuration value:

  1. # Configuration file
  2. ...
  3. log-level: info
  4. ...

and --log-level provided at startup:

  1. influxd --log-level warn

influxd print-config displays

  1. ...
  2. log-level: info
  3. ...

influxd print-config log-level warn displays

  1. ...
  2. log-level: warn
  3. ...

Usage

  1. influxd print-config [flags]

For information about available InfluxDB configuration methods, see InfluxDB configuration options.

Flags

FlagDescriptionInput type
-h—helpHelp for print-config
—key-namePrint the value of a specific configuration keystring

Examples

Print full influxd configuration
  1. influxd print-config
Print the value of a specific influxd configuration setting
  1. influxd print-config --key-name=http-bind-address