Hi,
I'm trying to dynamically add fields to a metric filter. Can you tell me why this is failing interpolation?
metrics {
meter => [ "events" ]
add_field => {
"agent" => "%{[agent][hostname]}"
}
add_tag => ["metric"]
enable_metric => false
}
if I use the same syntax with the mutate filter it works fine:
mutate {
add_field => {
"agent" => "%{[agent][hostname]}"
}
}
Logstash version is 7.11.1.
Thx
D