# Use of Split Filter for more than 1 fields, it is possible

**URL:** <https://discuss.elastic.co/t/use-of-split-filter-for-more-than-1-fields-it-is-possible/97687>\
**Category:** Logstash\
**Created:** [August 20, 2017, 1:26pm UTC](https://discuss.elastic.co/t/use-of-split-filter-for-more-than-1-fields-it-is-possible/97687 "2017-08-20T13:26:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 20, 2017, 6:27pm UTC](https://discuss.elastic.co/t/use-of-split-filter-for-more-than-1-fields-it-is-possible/97687/3 "2017-08-20T18:27:54Z")

</div>

The split filter acts on a single field. You can use a ruby filter to join the elements of each array into another array so that you have this:

```nohighlight
{
  ...
  "field_to_split": [
    ["A", "E", "W", "Q"],
    ...
  ]
}

```

Then feed `field_to_split` to a split filter, and use another filter or two to split the array back into discrete fields.

---

_[View the full topic](https://discuss.elastic.co/t/use-of-split-filter-for-more-than-1-fields-it-is-possible/97687)._
