influxdb/cmd/influx_inspect
Stuart Carnie 8aba6f73a5
feat(influx_inspect): Add -check-utf8 to verify sub-command
2018-12-21 10:44:43 -07:00
..
buildtsi Set cache size when building TSI index 2018-10-08 16:26:37 +01:00
deletetsm Merge pull request #9770 from influxdata/jmw-inspect-series-file 2018-05-02 11:27:53 -06:00
dumptsi Merge pull request #9884 from influxdata/bj-dumptsi-series-file-help 2018-10-17 08:52:50 -06:00
dumptsm Update influx inspect to support unsigned types 2017-10-05 10:26:14 -05:00
dumptsmwal dumptsmwal: fix minor vet error 2018-05-18 18:21:19 -06:00
export Log error encountered when reading WAL files 2018-03-30 09:40:58 -07:00
help reorganize the verify commands into a folder 2018-04-25 18:10:22 -06:00
report fix linting on cmd 2017-10-26 21:15:27 -04:00
reporttsi Address PR feedback 2018-07-04 10:57:40 +01:00
verify feat(influx_inspect): Add -check-utf8 to verify sub-command 2018-12-21 10:44:43 -07:00
README.md Update example in influx_inspect README.md 2016-11-01 10:16:23 -07:00
main.go Support for cardinality by measurement 2018-07-03 11:57:08 +01:00

README.md

influx_inspect

Ways to run

influx_inspect

Will print usage for the tool.

influx_inspect report

Displays series meta-data for all shards. Default location [$HOME/.influxdb]

influx_inspect dumptsm

Dumps low-level details about tsm1 files

Flags

-index bool

Dump raw index data.

default = false

-blocks bool

Dump raw block data.

default = false

-all

Dump all data. Caution: This may print a lot of information.

default = false

-filter-key

Only display index and block data match this key substring.

default = ""

influx_inspect export

Exports all tsm files to line protocol. This output file can be imported via the influx command.

-datadir string

Data storage path.

default = "$HOME/.influxdb/data"

-waldir string

WAL storage path.

default = "$HOME/.influxdb/wal"

-out string

Destination file to export to

default = "$HOME/.influxdb/export"

-database string (optional)

Database to export.

default = ""

-retention string (optional)

Retention policy to export.

default = ""

-start string (optional)

Optional. The time range to start at.

-end string (optional)

Optional. The time range to end at.

-compress bool (optional)

Compress the output.

default = false

Sample Commands

Export entire database and compress output:

influx_inspect export --compress

Export specific retention policy:

influx_inspect export --database mydb --retention autogen
Sample Data

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

Caveats

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.