Typorithm · easy

Line Protocol

line-protocol-formatinfluxdbsyntaxtagsfields
Saved on this device
Full lesson · 8 learning steps Open any exercise for focused practice
1

Step 1 of 8 · intro card

Learn Line Protocol

0%

Line Protocol

Line Protocol is measurement,tagset fieldset timestamp — a comma joins the measurement to its indexed tags, spaces separate the three sections, and the nanosecond timestamp is optional.

InfluxDB ingests points as Line Protocol, a compact text format with three space-separated sections.

The measurement and its comma-joined tag set form the first token; tags are indexed strings used to filter and group.

After a space come the fields (the measured values), then an optional space and timestamp — nanoseconds unless you say otherwise.

01

A comma joins measurement to tags; no space between them.

02

Spaces separate measurement+tags, fields, and timestamp.

03

Tags are indexed strings; fields hold the values.

measurement,tag1=v1,tag2=v2 field1=10,field2=20 1700000000000000000

Read the implementation

Connect each part of the code to the concept before you type.

1. Measurement

The measurement name comes first and is like a table name; it groups related points.

measurement

2. Tag set

Tags follow the measurement after a comma, comma-separated, with no space — they are indexed string metadata.

,tag1=v1,tag2=v2

3. Field set

A single space separates tags from fields; fields are the actual values, comma-separated like tags.

field1=10,field2=20

4. Timestamp

An optional trailing timestamp after a space; nanoseconds by default. Omit it and the server stamps now.

1700000000000000000

A complete learning loop

01

Understand

Read the concept map and follow the code breakdown.

02

Reconstruct

Type the implementation, repair mistakes and work through every recall exercise.

03

Verify

Use the final check without hints; revisit weak concepts in short practice sessions.

Line Protocol: Lesson & Practice · Typorithm | ApplyDjinn