# Create fields from the objects that are a part of array in Logstash filter

**URL:** <https://discuss.elastic.co/t/create-fields-from-the-objects-that-are-a-part-of-array-in-logstash-filter/299088>\
**Category:** Logstash\
**Created:** [March 8, 2022, 12:21pm UTC](https://discuss.elastic.co/t/create-fields-from-the-objects-that-are-a-part-of-array-in-logstash-filter/299088 "2022-03-08T12:21:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 8, 2022, 5:14pm UTC](https://discuss.elastic.co/t/create-fields-from-the-objects-that-are-a-part-of-array-in-logstash-filter/299088/2 "2022-03-08T17:14:43Z")

</div>

You could use a ruby filter like [this](https://discuss.elastic.co/t/how-can-i-flatten-an-array-in-my-document/235807/3). Note the correction to that post in the final post of the thread.

---

_[View the full topic](https://discuss.elastic.co/t/create-fields-from-the-objects-that-are-a-part-of-array-in-logstash-filter/299088)._
