Hello,
I'm trying to reference a field from a string inside the output section of my configuration. Instead of the field value, what I get is the literal representation of the string; in this case: '%{myfield}'. Here is the simplified version of my configuration containing only the related information:
input {
tcp {
...
}
}
filter {
if [somefield] == "something" {
...
if [somefield2] =~ someregex {
...
mutate {
rename => { "somefield3" => "myfield" }
}
...
} else {
drop {}
}
}
}
output {
if "_jsonparsefailure" in [tags] {
...
} else {
...
rabbitmq {
...
message_properties => {
"content_type" => "application/json"
"priority" => 1
"app_id" => "%{myfield}"
}
...
}
}
}