Write protocols in InfluxDB
This page documents an earlier version of InfluxDB. InfluxDB v2.7 is the latest stable version. See the equivalent InfluxDB v2.7 documentation: Line protocol.
The InfluxDB line protocol is a text based format for writing points to InfluxDB databases.
InfluxDB line protocol reference
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 (See data types for more information.
InfluxDB line protocol tutorial
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.
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.