# One doc for each array item

**URL:** <https://discuss.elastic.co/t/one-doc-for-each-array-item/235936>\
**Category:** Logstash\
**Created:** [June 5, 2020, 10:38am UTC](https://discuss.elastic.co/t/one-doc-for-each-array-item/235936 "2020-06-05T10:38:33Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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 5, 2020, 6:23pm UTC](https://discuss.elastic.co/t/one-doc-for-each-array-item/235936/8 "2020-06-05T18:23:48Z")

</div>

It should be targetUrl, not targeturl.

If you want to move every field inside userActions to the top level it might be easier to do it like [this](https://discuss.elastic.co/t/how-to-dynamically-move-nested-key-value-to-root-level/180006/2), in a ruby filter.

---

_[View the full topic](https://discuss.elastic.co/t/one-doc-for-each-array-item/235936)._
