I use InfluxDB 1.8.9 on a Raspberry PI 4 with Grafana and ioBroker for my smart home.
I am writing a script to import lots of historical data into InfluxDB, to use with “influx -import …”. This script reads from various files and produces >10’000 lines of line protocol output.
Somewhere in this output there’s a syntax error. When trying to import it, Influx just tells me there’s a syntax error, but not on which line this is.
How can I validate line protocol or Influx INSERT commands?
Is there a command that just validates syntax and tells you exactly WHERE an error occurs? This would be very valuable especially for people writing code which produces line protocol.
If not on Influx 1.8.9, does this exist in Influx 2? (I cannot upgrade currently but could install it on another machine to do the validation).