INFLUXD-CONFIG(1)

πŸ“¦ version 1.11.6, in opensuse-leap 16.0

πŸ’… INFLUXD-CONFIG, but make it a group chat ✨

Okay bestie, so this is the influxd-config manual page β€” it's giving "generate your config files, queen" energy and honestly? Iconic. Let's get into it. πŸŽ€


✨ NAME ✨

influxd-config β€” generates config files for InfluxDB. That's it, that's the vibe. πŸ¦‹


🫢 SYNOPSIS 🫢

influxd config (-config <path>)
influxd config -config /dev/null

Two ways to run it, both slay. πŸ’…


🌸 DESCRIPTION 🌸

Okay so influxd config will generate a configuration file for InfluxDB. The file gets spat out to standard output, and you can write it to an actual file by redirecting the shell output into another file. Easy, right? πŸ’–

But here's the tea about -config <path>: when you specify a configuration file that way, this config file gets read and will overwrite the default values for anything present in it. It's lowkey perfect for providing a config fragment with only the options you actually wanna customize, and then generating a whole new config file from that. If -config <path> is not specified, the command will look for a default configuration file using the same method as influxd-run(1). Consistency, we love to see it. ✨

⚠️ Okay bestie, IMPORTANT safety warning, do not skip this one. When you're using this command to regenerate a configuration file in place, you have to use a temporary file as the output. Like, this command right here? It will not work. Do NOT use it: bash # DO NOT USE! $ influxd config -config influxdb.conf > influxdb.conf Because bestie 😭 the shell will truncate the configuration file before influxd config can even read it, and you will lose ALL of your custom options. Gone. Poof. Not the vibe. Here's the PROPER METHOD: bash $ influxd config -config influxdb.conf > influxdb.conf.tmp && \ mv influxdb.conf.tmp influxdb.conf For safety, redirect output to a temporary file instead and use mv to move the file afterwards. Protecting your config > everything. 🫢

And the second command version? It forces influxd config to output the default configuration file. Setting the configuration file to /dev/null will cause the command to output only the defaults and will not read any values from any existing configuration files. Clean slate, main character energy. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -config <path> β€” Customize the default configuration file to load. Also, it disables automatic loading when the path is /dev/null. So if you want defaults and ONLY defaults, this is your girl. πŸŽ€

πŸ¦‹ BUGS πŸ¦‹

Found a bug? Don't suffer in silence, bestie. Report bugs to the GitHub issue tracker at https://github.com/influxdata/influxdb. Be the hero this repo needs. πŸ™ˆ


🌈 AUTHORS 🌈

InfluxDB is written and maintained by InfluxData β€” check 'em out at https://influxdata.com. Kings of the database world, fr fr. πŸ‘‘


InfluxDB is released under the MIT license.

This man page is released under Creative Commons Attribution 4.0 International License. Legal stuff but make it cute. ✨


Okay that's the whole tea, bestie. Go forth and configure responsibly. πŸŒΈπŸ’–βœ¨πŸ¦‹πŸŽ€πŸ’…πŸ«ΆπŸ˜­πŸ”₯πŸ‘‘πŸŒˆβ­πŸ’€πŸ™ˆπŸ“πŸ§šπŸ’œ

Smooches from your fave manual, dated 08/09/2024 β€” same page name, no cap. ✨

πŸ“¦ where this page comes from