# How to work on object to get 0,1,2,3 out of it

**URL:** <https://discuss.elastic.co/t/how-to-work-on-object-to-get-0-1-2-3-out-of-it/252040>\
**Category:** Logstash\
**Created:** [October 14, 2020, 12:13pm UTC](https://discuss.elastic.co/t/how-to-work-on-object-to-get-0-1-2-3-out-of-it/252040 "2020-10-14T12:13:23Z")\
**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:** [October 14, 2020, 3:30pm UTC](https://discuss.elastic.co/t/how-to-work-on-object-to-get-0-1-2-3-out-of-it/252040/2 "2020-10-14T15:30:44Z")

</div>

You could do that in a ruby filter. [This](https://discuss.elastic.co/t/splitting-fields-into-new-documents/251459/2) post gives an example, although obviously it will require changes to the pattern and capture group references.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-work-on-object-to-get-0-1-2-3-out-of-it/252040)._
