my problem is now, the issue of topic=… since this is also written to the database
A solution is to leave out the topic area [[inputs.mqtt_consumer.topic_parsing]], but then telegraf no longer starts.
2023-03-14T17:53:25Z E! [telegraf] Error running agent: could not initialize input inputs.mqtt_consumer: config error topic parsing: measurement length does not equal topic length
the database entry
Table: keys: [_start, _stop, _field, _measurement, location1, location2, topic]
_start:time _stop:time _field:string _measurement:string location1:string location2:string topic:string _time:time _value:float
2023-03-14T17:27:59.732326779Z 2023-03-14T17:57:59.732326779Z temperature1 home room workshop home/room/workshop/temperature1 2023-03-14T17:31:18.550720212Z 20.19
I don’t know how I don’t get this entry topic= transferred to the database
I don’t understand the hint.
My topic from controller is:
I have four entries