Need a complete XML Filter example

Hi Abdul,

have you seen this topic ?
https://discuss.elastic.co/t/help-with-parsing-xml-content/27445/3

It's been usefull for me to understand Xpath to parse xml..

You should be have something like

filter {
       xml {
              source => "yourxml"
              store_xml => false
              xpath => ["/testResults/httpSample/@t", "t_value"]
              xpath => ["/testResults/httpSample/@ts", "ts_value"]
 [......]        

Regards,
Mr.Nice

2 Likes