If i have a Json message, into has an element "error" : "<?xml version=\"1.0\" encoding=\"UTF-8\"?> zefzefzfzef "
how can extract and parse XML for create a sub-doc with all element xml
example :
"json" : "valueJson"
"error" : {
"xmlRoot" : {
"a" : "zefzefzfzef"
}
}
into logstash config :
in my filter {
json {
source => "message"
}
xxx
xxxx
xml {
source => "message.error"
target => "xmlFormatted"
}
} // end filter
Please edit your post to show the actual value of the XML. In the text edit box select the XML and click on </> in the tool bar. Otherwise the XML will be consumed by the browser as if it were HTML.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.