Hi @Tom999 -
Detailed mqtt_consumer documentation can be found here.
There are some problems with this code.
- Do not mix
[[inputs.mqtt_consumer]]and[[inputs.file]]. All lower-level plug-in statements must also start with[[inputs.mqtt . . .]]. - Lower-level statements must use proper indentation (see this recent post.)
- Need to specify
data_format = "json_v2"at the beginning. - First parse the topic to unwrap the payload, then parse the JSON. It is reversed in your code which probably caused the error message.
