Hello,
I am little lost with one problem when parsing xml files to ES with Logstash. Due to unfortunate xml structure which I can't change, I need to get string name of specific nodes. Example of xml structure:
Why they are out of order (and Ruby hashes are ordered) I have no idea. To convert that to an array you can use a ruby filter. If you do not care about the order then
I cannot think of a way to deal with an arbitrary number of elements other than setting store_xml to true and using a ruby filter to extract the element names.
However, I have realized that all the nodes I am trying to get their names have the same children structure. Is there any way, how to approach the problem from parent-children perspective?
I am trying to use this: 'xpath => {"name(//time//parent::node())" => "NodeNamesArray"}'
... but it only gets me the first parent node name the parser finds. Is there any other way?
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.