Hi all,
Newbie to logstash here but I'm sure this should work. I am creating a metric and need to be able to split by http result code. The result code is stored in %{rcode}. In the below the variable is being substituted in the metric name correctly but not in the add_field method.
Any ideas?
Thanks
Jeff
filter {
if [type] == "heeaccesslogs" {
metrics {
meter => "heeevents_rcode_%{rcode}"
add_tag => "metric"
add_field => { "rcode" => "%{rcode}" }
add_field => { "type" => "heemetric" }
}
}
}