Dears,
Can we use regex expression in logstash configuration in case of filter and xpath?
There is right now such to conditions:
...
filter {
if "xmlapps" in [tags] {
xml {
source => "message"
store_xml => false
force_array => false
xpath => [
"/log//re/im/field[@id='0']/@value", "app.rec",
"/log//se/im/field[@id='0']/@value", "app.rec"
]
}
}
...
Is there any way to use regex expression in one line instead of two separate lines?
If yes please advise me how to do it. Thanks a lot.
Best Regards,
Dan