So I want to have 1 record for each car contained in my xml document. So the xpath param will be something like that xpath => [ "/cars/car/model", "Model", "cars/car/color", "Color"]
But I don't get the logic of how can I tell Logstash to store each item in a new record =/
I wonder, is the xpath option really the best way forward? Can't you parse the whole XML document, delete any unwanted fields, and use the split filter on the result?
So in elastic I have one document for each car with following message field and it's exatcly what I want. <car> <model>xxx</model> <color>yyy</color> </car>
Once parsed like this, I can easly add fields model or color to have a more clean document (instead of a message field with all data inside).
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.