Need to parse the xml data via logstash

I am trying to parse an XML using 5.2.1 logstatsh version.
Sample xml



am getting error below:
WARN logstash.filter.split - Only String and Array Types are splittable.field:apps[app] is of type = NilClass

ERROR logstash.codecs.json -JSON parse error, original data now in a message field {:error=>#<Logstash::Json::ParserError: Unrecognized token 'This' : was expecting ('true' .'false', or 'null') at [Source : This is standby RM. The redirect url is: /ws/v1/custer/scheduler
input{
exec {
type=>"apps"
command =>" curl -s "
interval =>"5"
codec=>"plain"
}
}
filter{
if[type] =="apps"
{
split{
field=>"apps[app]"
}
}
}

do i need to use xml filter ?
xml{
source=>message
}
pls advise the best suitable solution

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.