# Does logstash support having a list/array in root (top level) of the event

**URL:** <https://discuss.elastic.co/t/does-logstash-support-having-a-list-array-in-root-top-level-of-the-event/283524>\
**Category:** Logstash\
**Created:** [September 7, 2021, 11:19am UTC](https://discuss.elastic.co/t/does-logstash-support-having-a-list-array-in-root-top-level-of-the-event/283524 "2021-09-07T11:19:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Renjith\_PK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/renjith_pk/32/94239_2.png) [@Renjith\_PK](https://discuss.elastic.co/u/Renjith_PK)\
**Post date:** [September 7, 2021, 2:27pm UTC](https://discuss.elastic.co/t/does-logstash-support-having-a-list-array-in-root-top-level-of-the-event/283524/3 "2021-09-07T14:27:06Z")

</div>

Expected event format

```auto
[{key1:value1},{key2:value2}]

```

Basically zipkin wanted to consume it from elasticsearch and list is what it requires.  
Here is a similar discussion - [Logstash Filter Json To Array of Json - #6 by Badger](https://discuss.elastic.co/t/logstash-filter-json-to-array-of-json/181345/6) but in my case output is elasticsearch I don't think I can use `codec => plain { format => "[%{[@metadata][string]}`

---

_[View the full topic](https://discuss.elastic.co/t/does-logstash-support-having-a-list-array-in-root-top-level-of-the-event/283524)._
