Write protocols in InfluxDB
This page documents an earlier version of InfluxDB. InfluxDB v2.7 is the latest stable version.
InfluxDB’s Line Protocol is a text based format for writing points to InfluxDB.
Line Protocol reference
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 accepts one measurement per point.
Line Protocol tutorial
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.
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.