I’m currently testing sending an mqtt payload with an array of json objects to reduce message count. I successfully configured the json_v2 parser for a single object, and the object schema has not changed. Now when the messages are received I get an error:
2022-02-23T20:50:22+13:00 E! [inputs.mqtt_consumer] Error in plugin: GJSON Path returned null, either couldn't find value or path has null value
The object schema is simple (no nesting). A simplified example of the schema is:
From the documentation I was expecting the plugin to parse each object in the array using the same configuration. Is that not the case? Do I need to adapt my json_v2 config for the array?
Thanks, I tried that config and now there are no errors, but it doesn’t process any messages at all. I’ll keep on troubleshooting, but please let me know if you have any ideas.