# Xml filter array in field

**URL:** <https://discuss.elastic.co/t/xml-filter-array-in-field/162143>\
**Category:** Logstash\
**Created:** [December 26, 2018, 12:55pm UTC](https://discuss.elastic.co/t/xml-filter-array-in-field/162143 "2018-12-26T12:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lora\_Vl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lora_vl/32/49995_2.png) [@Lora\_Vl](https://discuss.elastic.co/u/Lora_Vl)\
**Post date:** [December 26, 2018, 12:55pm UTC](https://discuss.elastic.co/t/xml-filter-array-in-field/162143/1 "2018-12-26T12:55:41Z")

</div>

Hello I have a XML file wich contains many elements, I played around with the XML filter for logstash wich only gives me 2 arrays

I need to interconnect the two arrays. To eventually I want to get one field in which the of the field name taken from the first array and the corresponding value from the second array. Please tell me how can I do that?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 23, 2019, 12:55pm UTC](https://discuss.elastic.co/t/xml-filter-array-in-field/162143/2 "2019-01-23T12:55:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
