Kapacitor: MQTT > Elastic, fields missing?

kapacitor

#1

Hi there,

I’m testing Kapacitor and am currently using ot to push messages from MQTT to Elastic.
In general, it’s working fine, but I have noticed that some fields are missing in Elastic, I’m not sure why this happens though.

I’ve created a sample here: https://gist.github.com/solars/5cf041b49c90d6a386cc138e4d7fb6d4
As you can see the “gtw_id” is present in the MQTT input JSON, but missing in the elastic data.

Can anyone tell me why this happens and how to fix it?

Thanks for your help!

Edit: I just noticed that those are the string fields - however, how do I specify the gtw_id if it’s inside of an array without using the index (as I want to add all of them)?