Where Is InfluxDB Data Stored?
InfluxDB stores time series data under /var/lib/influxdb on Linux package installs. The layout differs between v1 and v2, so check the version first.
Last updated
For v1 package installs, data is in /var/lib/influxdb/data with WAL in /var/lib/influxdb/wal and metadata in /var/lib/influxdb/meta. Config is at /etc/influxdb/influxdb.conf. For v2 package installs, storage is in /var/lib/influxdb/engine with bolt and sqlite files in /var/lib/influxdb/ and config at /etc/influxdb/config.toml.
Docker images for v2 use /var/lib/influxdb2 and standalone binaries may use ~/.influxdbv2. Confirm the live value in config and with influxd config output since admins change defaults.
Where InfluxDB stores this, by platform
/var/lib/influxdb
v1 uses data, wal, and meta subfolders. v2 package uses engine plus influxd.bolt and influxd.sqlite. Docker v2 defaults to /var/lib/influxdb2. Persistence may be relocated by env vars or flags.
Frequently asked questions
How do v1 and v2 paths differ?
v1 splits storage into data, wal, and meta under /var/lib/influxdb. v2 combines time series storage under engine and adds bolt and sqlite files for metadata. Check /etc/influxdb/influxdb.conf for v1 and /etc/influxdb/config.toml for v2.
How do I confirm the active paths?
Run influxd config to print effective settings. Also inspect the config file and service env vars. Confirm the live value in config since admins change defaults and upgrades can alter layout.
Notice an outdated path? Let us know.