Display an xml attribute value using xml filter

Here is the xml file, i want to print the attribute value name from class tag. And my conf file is below

input {
file {
path=>["C:/logstash-2.1.1/Data/TestNG_Linear2.xml"]
start_position =>"beginning"
type =>suitefile
}
}

filter
{
multiline {
pattern => "suite "
what => "previous"
negate => "true"
}
xml
{
source => "message"
store_xml => false
add_tag => "xml"
remove_namespaces => "true"

xpath =>["/suite/test/classes/class/name/text()","time"]

}
mutate {
add_field => ["NameIndexed", "%{Name}"]
}

}

output {
stdout {}
}

Where?

You may want to format that with code tags so it displays properly :slight_smile: