From the course: InfluxDB for Time Series Data: Ingest, Analyze, and Visualize Data

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

What is line protocol?

What is line protocol?

- [Instructor] In order to act on data, all data that is sent to Influx Data is converted along its journey into line protocol format. Line protocol is a text-based format that uses syntax and whitespace to format the following elements of a single data point, the measurement, tag set, field set and timestamp. Let's take a look at an example of line protocol and break it down into its parts, paying attention to the syntax used throughout the data point. Whitespace in line protocol determines how InfluxDB interprets the line protocol as a data point. The first unescaped space delimits the measurement and the tag set from the field set. The second unescaped space separates the field set from the timestamp, if there is a timestamp. If you are including a single tag set in your data, then you will also use a comma following the measurement name. If you are including multiple tag sets, then you will use a comma but no…

Contents