Will print usage for the tool.
Displays series meta-data for all shards. Default location [$HOME/.influxdb]
Dumps low-level details about tsm1 files
Dump raw index data.
default
= false
Dump raw block data.
default
= false
Dump all data. Caution: This may print a lot of information.
default
= false
Only display index and block data match this key substring.
default
= ""
Exports all tsm files to line protocol. This output file can be imported via the influx command.
Data storage path.
default
= "$HOME/.influxdb/data"
WAL storage path.
default
= "$HOME/.influxdb/wal"
Destination file to export to
default
= "$HOME/.influxdb/export"
Database to export.
default
= ""
Retention policy to export.
default
= ""
Optional. The time range to start at.
Optional. The time range to end at.
Compress the output.
default
= false
Export entire database and compress output:
influx_inspect export --compress
Export specific retention policy:
influx_inspect export --database mydb --retention autogen
This is a sample of what the output will look like.
# DDL
CREATE DATABASE MY_DB_NAME
CREATE RETENTION POLICY autogen ON MY_DB_NAME DURATION inf REPLICATION 1
# DML
# CONTEXT-DATABASE:MY_DB_NAME
# CONTEXT-RETENTION-POLICY:autogen
randset value=97.9296104805 1439856000000000000
randset value=25.3849066842 1439856100000000000
The system does not have access to the meta store when exporting TSM shards. As such, it always creates the retention policy with infinite duration and replication factor of 1. End users may want to change this prior to re-importing if they are importing to a cluster or want a different duration for retention.