Open osek666 opened 7 years ago
Hi osek.
If I understood correctly, you want to specify which fields are "Tag" and which are "Field" InfluxDB «columns».
You can do that, like this:
data_points => {
"someColumn" => "%{someColumn}"
"someColumn2" => "%{someColumn2}"
"someColumn3" => "%{someColumn3}"
}
send_as_tags => [
"someColumn2",
"someColumn3"
]
You understood correctly, but I want to do it dynamically. I use logstash to forward metrics to InfluxDb. I don't want to write logstash configuration for every metric I have. Every message should define own list of tags.
@osek666 I have the same requirement, did you find any way to send dynamic tags?
Yes. We are using Telegraf instead of Logstash.
Hi!
I have a little problem with tags.
My config is:
My message to logstash is:
I would like to define in "tags" array, which of my fields are tags. Right now everything what is in "tags" array, will be saved to InfluxDb as tag with "true" value. I can try to prepare pull request for that. Is there any chance for approval?