I am new to Telegraf and the influx community but am very impressed with the ease of use and the products. With this in mind, I would like your advice on a problem I am facing.
I set up Telegraf to collect data via MODBUS from an energy meter and it works fine. But sometimes the result is “nan” and I would like to filter these with the help of a Telegraf processor before it gets injected into the DB. I feel that regex could be one way (e.g. by replacing “nan” with “-1”) but just not logging it, would also be fine. Do you have an idea how to achieve this?
Thank you very much in advance,