Thanks @magnusbaeck . Means you are saying i cant merge and send bulk xml files to logstash right?
Suppose if i have xml file like this:
<root id="XYZ">
<users>
<someone id="john.doe" type="human"/>
<priorities>
<priority name="high"/>
</priorities>
<cities>
<city name="London"/>
<city name="Paris"/>
<city name="Rome"/>
</cities>
</someone>
<someone id="hal.9001" type="machine"/>
<priorities>
<priority name="low"/>
</priorities>
<cities>
<city name="Jupiter"/>
<city name="Paris"/>
</cities>
</someone>
</users>
</root>
I want my output in this format:
"someoneId" => "john.doe"
"rootId" => "XYZ"
"priorityName" => "high"
"cities" => [
[0] "London"
[1] "Paris"
[2] "Rome"
],
"someoneId" => "hal.9001"
"rootId" => "XYZ"
"priorityName" => "low"
"cities" => [
[0] "Jupiter"
[1] "Paris"
]
Is this possible in logstash?
Thanks