hi all,
I'm trying to apply an XML filter based on the value of one of the fields. So, the config for that part looks like this:
filter{
if [my_field] == "x.zhh"{
xml{
store_xml => "false"
source => "[myxml][payload][xml]"
xpath => ["/testData/name/@type","Type"]
remove_namespaces => "true"
}
}
mutate{
add_field => {"test_IF" => "TEST"}
}
}
Somehow, the XML filter is ignored and I see only the output of mutate function. I checked and the field my_field has value.
Not sure what exactly is wrong with the config. Can anyone help with this?
Thanks