Closed reinhard-brandstaedter closed 1 year ago
We desperately need this. I've been banging my face on the desk for the past 3 days trying to get metrics into InfluxDB from LogStash with dynamic tags/fields since you cannot pass an array variable into the output argument. This is the last piece I need.
Jason, you might checkout the plugin from my GitHub branch of the plugin. It works for me with dynamic tags as I described the feature above. It's a rather small code change but really helpful. Reinhard
Looking around seems like a lot of users are running into the same issue like @hanej. It has been now almost a year later, any resolution on this? The code change seems as @reinhard-brandstaedter says rather small, why is it not being merged yet?
Adds the ability to specify dynamic tags in message.tags that will get the value of the according (same name) field instead of plainly setting to true.
Example: logstash message: tags ["tag1", "tag2", "tag3" ] fields { "tag1" => "abc" "tag2" =>"def" "tag3" => "ghi" }
will add 3 tag keys in logstash with tag values abc, def, ghi without the requirement to configure any "send_as_tags" in logstash output configuration. This is especially useful if tag names are not known before.