# To use a ruby filter to join the elements of each array into an array of objects logstash

**URL:** https://discuss.elastic.co/t/to-use-a-ruby-filter-to-join-the-elements-of-each-array-into-an-array-of-objects-logstash/151845
**Category:** Logstash
**Created:** [October 10, 2018, 12:11pm UTC](https://discuss.elastic.co/t/to-use-a-ruby-filter-to-join-the-elements-of-each-array-into-an-array-of-objects-logstash/151845 "2018-10-10T12:11:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![balumurari1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balumurari1/32/39203_2.png) [@balumurari1](https://discuss.elastic.co/u/balumurari1)
#### Post date: [October 10, 2018, 12:11pm UTC](https://discuss.elastic.co/t/to-use-a-ruby-filter-to-join-the-elements-of-each-array-into-an-array-of-objects-logstash/151845/1 "2018-10-10T12:11:19Z")

</div>

Hello, can anyone please help me to use a ruby filter to join the elements of each array into an array of objects as shown in below image

![output](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fd4157ab29c72dcb3abd787eeb7d480a7c373ebe.png)

thanks in advance,

---

<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: [November 7, 2018, 12:17pm UTC](https://discuss.elastic.co/t/to-use-a-ruby-filter-to-join-the-elements-of-each-array-into-an-array-of-objects-logstash/151845/2 "2018-11-07T12:17:44Z")

</div>

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