# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amaleswar](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@amaleswar](https://discuss.elastic.co/u/amaleswar)\
**Post date:** [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/1 "2020-10-14T12:13:23Z")

</div>

"eventInfo": {  
"delete.user.0.firstname": "david",  
"delete.user.0.lastname": "flank",  
"delete.user.0.city": "austin",  
"delete.user.1.firstname": "martin",  
"delete.user.1.lastname": "king",  
"delete.user.1.city": "dallas",  
"delete.user.2.firstname": "Samantha",  
"delete.user.2.lastname": "philip",  
"delete.user.2.city": "motogomery",  
"delete.user.3.firstname": "john",  
"delete.user.3.lastname": "david",  
"delete.user.3.city": "hilton",

---

<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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 11, 2020, 3:30pm UTC](https://discuss.elastic.co/t/how-to-work-on-object-to-get-0-1-2-3-out-of-it/252040/3 "2020-11-11T15:30:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
