sweber
November 11, 2024, 7:36am
1
Hi!
I have a quite plain application connecting to InfluxDB 1.8, which cannot use JSON output.
The CSV output can be converted to a 2D array easiliy, given the separator character ‘,’.
Well, unless the field values contain commas, too…
So, is there a way to use a different character?
I know, this shifts the problem, but usually, that’s enough to solve it…
See
Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data. - influxdata/telegraf
You can use csv_separator = ","
sweber
November 11, 2024, 9:33am
3
Hi!
Hmm, I’m not using Telegraf. I’m querying InfluxDB directly via http, and processing the returned data.
So, I though there may be a html header I don’t know or an additional URL parameter…
I’m not aware of any parameter to define a different separator… I assume the returned csv is not quoted since you have this kind of problem