How to indexing to elastic specific tag of xml?
I want to index specific tag only from below xml format could you please help me?
<records<record<details<furtherinformation
How to indexing to elastic specific tag of xml?
I want to index specific tag only from below xml format could you please help me?
<records<record<details<furtherinformation
If you have an event that looks like
<records><record><details><furtherinformation>Foo</furtherinformation></details></record></records>
You can use an xml filter to parse it. For example
xml {
source => "message"
store_xml => false
xpath => { "/records/record/details/furtherinformation/text()" => "FurtherInformation" }
remove_field => [ "message" ]
}
will get you
"FurtherInformation" => [
[0] "Foo"
]
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.