title |
description |
menu |
weight |
v2.0/tags |
influx write |
The `influx write` command writes data to InfluxDB via stdin or from a specified file. Write data using line protocol or annotated CSV.
|
v2_0_ref |
name |
parent |
influx write |
influx |
|
|
101 |
|
The influx write
command writes data to InfluxDB via stdin or from a specified file.
Write data using line protocol or
annotated CSV.
Usage
influx write [flags]
influx write [command]
Subcommands
Subcommand |
Description |
dryrun |
Write to stdout instead of InfluxDB |
Flags
Flag |
Description |
Input type |
{{< cli/mapped >}} |
-b , --bucket |
Bucket name |
string |
INFLUX_BUCKET_NAME |
--bucket-id |
Bucket ID |
string |
INFLUX_BUCKET_ID |
-f , --file |
File to import |
string |
|
--format |
Input format (lp or csv , default lp ) |
string |
|
-h , --help |
Help for the dryrun command |
|
|
-o , --org |
Organization name |
string |
INFLUX_ORG |
--org-id |
Organization ID |
string |
INFLUX_ORG_ID |
-p , --precision |
Precision of the timestamps (default ns ) |
string |
INFLUX_PRECISION |
{{% cli/influx-global-flags %}}