This works fine. But my temperature values are transmitted as strings with the “℃” unit.
Obviously I could parse that further down the line, but is there any way to do this right here already?
No. The CSV parser does have no means to tamper with the input data other than splitting it apart. Use a processor for removing unwanted data and converting the fields.
[[inputs.tail]]
files = ["/*.csv"]
data_format = "csv"
csv_column_names = ["Time", "InnerTemp", "OuterTemp"]
## Remove "℃" from the TEMPerX readings, so they can be treated as floats!
[[processors.strings]]
order = 1
[[processors.strings.trim_suffix]]
field = "OuterTemp"
suffix = "℃"
[[processors.strings.trim_suffix]]
field = "InnerTemp"
suffix = "℃"
## Convert readings to proper floats
## Important that these two processor steps happen in order!
[[processors.converter]]
order = 2
[processors.converter.fields]
float = ["OuterTemp","InnerTemp"]