domm / InfluxDB-Writer

Various tools to send lines to InfluxDB
2 stars 4 forks source link

Support for multiline strings #7

Open mephinet opened 8 years ago

mephinet commented 8 years ago

From my understanding of Influx, it is ok for string values to contain newlines. However, when using InfluxDB::Writer::RememberingFileTailer to upload a stats file with a multiline string, an error is reported:

Skipping probably broken line measurement,tag=something msg="This is at .../InfluxDB/Writer/RememberingFileTailer.pm line 95.

https://github.com/influxdata/influxdb/pull/3565 shows that this issue has been addressed in the Go implementation.

mephinet commented 8 years ago

This branch contains a unittest to reproduce the issue: https://github.com/mephinet/InfluxDB-Writer/tree/multiline