influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.95k stars 3.56k forks source link

Write path doesn't enforce naming restrictions on measurement and key names #20310

Open doivosevic opened 3 years ago

doivosevic commented 3 years ago

Running on 2.0.2

This line inserted seems to be causing the error:

pipy_event_api_events_received,_start=2020-12-10T19:34:30.405135771Z value=31128 1607630400000000000

I believe the issue is with the value of the _start tag. EDIT: The issue is with the underscore at the beginning which should not be allowed. You should also add validation when ingesting the line protocol like you would for other parsing issues

image

danxmoran commented 3 years ago

Reproduced, and confirmed that leading _ should be rejected according to the LP spec.