Non fixed tag_keys array

Hi all,

Is there a way to tell to a telegraf input plugin such as kafka consumer, not to drop tags that are not specified in the tag_keys property for json data format?

For example, with reference to this json

        "measurement": "my-measurement",
        "tags": {
            "tag1": "my-tag1",
            "tag2": "my-tag2"
        "fields": {
            "my-field": "my-value"

if I don’t set tag1 and tag2 in the telegraf.conf, the kafka-consumer plugin will ignore both.

Is there a way to skip this behaviour?

Thank you

Hi @vladbragoi,

I’m sorry, but I do not understand what you are asking. Can you elaborate a little and please share your Telegraf configuration.