Write protocols in InfluxDB
This page documents an earlier version of InfluxDB.
InfluxDB v2.0 is the latest stable version.
InfluxDB’s Line Protocol is a text based format for writing points to InfluxDB.
The Line Protocol is a text based format for writing points to InfluxDB.
Line Protocol Syntax <measurement>[,<tag_key>=<tag_value>[,<tag_key>=<tag_value>]] <field_key>=<field_value>[,<field_key>=<field_value>] [<timestamp>] Each line, separated by the newline character \n, represents a single point in InfluxDB. Line Protocol is whitespace sensitive.
Description of Syntax Line Protocol informs InfluxDB of the data’s measurement, tag set, field set, and timestamp.
Element Optional/Required Description Type
(See data types for more information.) Measurement Required The measurement name.
InfluxDB’s Line Protocol is a text based format for writing points to the database. Points must be in Line Protocol format for InfluxDB to successfully parse and write points (unless you’re using a service plugin).
Using fictional temperature data, this page introduces Line Protocol. It covers:
Syntax Data Types Quoting Special Characters and Keywords The final section, Writing data to InfluxDB, describes how to get data into InfluxDB and how InfluxDB handles Line Protocol duplicates.
Support and feedback
Thank you for being part of our community!
We welcome and encourage your feedback and bug reports for InfluxDB and this documentation.
To find support, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.