Write protocols in InfluxDB
This page documents an earlier version of InfluxDB.
InfluxDB v2.1 is the latest stable version.
See the equivalent InfluxDB v2.1 documentation: Line protocol.
The InfluxDB line protocol is a text based format for writing points to InfluxDB databases.
InfluxDB 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>] Line protocol accepts the newline character \n and is whitespace-sensitive.
Note Line protocol does not support the newline character \n in tag values or field values.
Syntax description InfluxDB line protocol informs InfluxDB of the data’s measurement, tag set, field set, and timestamp.
Element Optional/Required Description Type
The InfluxDB 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 InfluxDB 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.