# How can i get "Elasticsearch Filter Plugin" result in json list in C#

**URL:** <https://discuss.elastic.co/t/how-can-i-get-elasticsearch-filter-plugin-result-in-json-list-in-c/133788>\
**Category:** Logstash\
**Created:** [May 30, 2018, 4:45am UTC](https://discuss.elastic.co/t/how-can-i-get-elasticsearch-filter-plugin-result-in-json-list-in-c/133788 "2018-05-30T04:45:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 9, 2018, 9:45pm UTC](https://discuss.elastic.co/t/how-can-i-get-elasticsearch-filter-plugin-result-in-json-list-in-c/133788/3 "2018-06-09T21:45:57Z")

</div>

I cannot think off the top of my head how to get that, but this would give you an array of arrays.

```auto
    ruby { code => "
        i = event.get('find_id')
        t = event.get('find_@timestamp')
        a = []
        i.each_index { |k|
            n = [i[k], t[k] ]
            a << n
        }
        event.set('arrayOfArrays', a)
        "
    }

```

---

_[View the full topic](https://discuss.elastic.co/t/how-can-i-get-elasticsearch-filter-plugin-result-in-json-list-in-c/133788)._
