Telegraf - Can I output invalid points to a different location?

Basically I’m saving a big string as text field, for what I’ve seen so far certain character combination will be invalid, but to know what exactly is causing it I need to see the whole string

Sadly even with the option “debug = true” I don’t get any useful information from the log, below an example of my error.

2020-04-23T14:17:31Z E! [outputs.influxdb] When writing to [http://127.0.0.1:8186]: 400 Bad Request: metric parse error: expected field at 6647:29: "          LU_ID = @p_lu_id,"
2020-04-23T14:17:31Z E! [agent] Error writing to outputs.influxdb: could not write any address

So I know that after the string " LU_ID = @p_lu_id," is invalid but I don’t know what exactly… te logged section of the string is in fact valid

Is it possible to output those “broken” points to a different output (ie: output file) in order to track and keep them?

Sorry, but I don’t believe this is possible.

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.