influx write dryrun
- influx CLI 2.0.0+
- InfluxDB 2.0.0+
Authentication credentials
Dry run writing line protocol via stdin
influx write --bucket example-bucket "
m,host=host1 field1=1.2
m,host=host2 field1=2.4
m,host=host1 field2=5i
m,host=host2 field2=3i
"
Dry run writing line protocol from a file
influx write dryrun \
--bucket example-bucket \
--file path/to/line-protocol.txt
Dry run writing line protocol from multiple files
influx write dryrun \
--file path/to/line-protocol-1.txt \
--file path/to/line-protocol-2.txt
Dry run writing line protocol from a URL
Dry run writing line protocol from multiple URLs
influx write dryrun \
--bucket example-bucket \
--url https://example.com/line-protocol-1.txt \
--url https://example.com/line-protocol-2.txt
Dry run writing line protocol from multiple sources
influx write dryrun \
--bucket example-bucket \
--file path/to/line-protocol-1.txt \
CSV
Dry run writing annotated CSV data via stdin
influx write dryrun \
--bucket example-bucket \
--format csv \
"#datatype measurement,tag,tag,field,field,ignored,time
m,cpu,host,time_steal,usage_user,nothing,time
cpu,cpu1,host1,0,2.7,a,1482669077000000000
cpu,cpu1,host2,0,2.2,b,1482669087000000000
"
Dry run writing annotated CSV data from a file
Dry run writing annotated CSV data from multiple files
influx write dryrun \
--bucket example-bucket \
--file path/to/data-1.csv \
--file path/to/data-2.csv
Dry run writing annotated CSV data from a URL
influx write dryrun \
--bucket example-bucket \
--url https://example.com/data.csv
Dry run writing annotated CSV data from multiple URLs
influx write dryrun \
--bucket example-bucket \
--url https://example.com/data-1.csv \
--url https://example.com/data-2.csv
Dry run writing annotated CSV data from multiple sources
influx write dryrun \
--bucket example-bucket \
--header "#constant measurement,birds" \
--file path/to/data.csv