# Logstash using KV filter creating a field with an array rather than individual fields and individual values

**URL:** <https://discuss.elastic.co/t/logstash-using-kv-filter-creating-a-field-with-an-array-rather-than-individual-fields-and-individual-values/290007>\
**Category:** Logstash\
**Created:** [November 24, 2021, 4:21am UTC](https://discuss.elastic.co/t/logstash-using-kv-filter-creating-a-field-with-an-array-rather-than-individual-fields-and-individual-values/290007 "2021-11-24T04:21:00Z")\
**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:** [November 24, 2021, 4:53am UTC](https://discuss.elastic.co/t/logstash-using-kv-filter-creating-a-field-with-an-array-rather-than-individual-fields-and-individual-values/290007/2 "2021-11-24T04:53:19Z")

</div>

It is certainly possible. [This thread](https://discuss.elastic.co/t/flatten-the-json-array-into-field-in-filter-of-logstash/135750/2) is about a slightly different question, but should give you an idea of how to do it.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-using-kv-filter-creating-a-field-with-an-array-rather-than-individual-fields-and-individual-values/290007)._
