# Using Ruby to rename and flatten dynamic json input

**URL:** <https://discuss.elastic.co/t/using-ruby-to-rename-and-flatten-dynamic-json-input/276438>\
**Category:** Logstash\
**Created:** [June 19, 2021, 3:19pm UTC](https://discuss.elastic.co/t/using-ruby-to-rename-and-flatten-dynamic-json-input/276438 "2021-06-19T15:19:54Z")\
**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:** [June 19, 2021, 4:31pm UTC](https://discuss.elastic.co/t/using-ruby-to-rename-and-flatten-dynamic-json-input/276438/2 "2021-06-19T16:31:00Z")

</div>

There is an example of doing that [here](https://discuss.elastic.co/t/indent-any-json-file-nested-fields-and-make-it-flat/194447/2).

---

_[View the full topic](https://discuss.elastic.co/t/using-ruby-to-rename-and-flatten-dynamic-json-input/276438)._
