# Revome over gsub()

**URL:** https://discuss.elastic.co/t/revome-over-gsub/306460
**Category:** Logstash
**Created:** [June 6, 2022, 1:59pm UTC](https://discuss.elastic.co/t/revome-over-gsub/306460 "2022-06-06T13:59:52Z")
**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 6, 2022, 3:38pm UTC](https://discuss.elastic.co/t/revome-over-gsub/306460/2 "2022-06-06T15:38:27Z")

</div>

> [@Iss](#):
>
> `hash.each do |k,v|`

That just iterates over the top level entries in the hash. If you need to recursively descend into hashes or arrays then you need something more like [this](https://discuss.elastic.co/t/how-to-exclude-xml-json-key-value-if-key-length-is-greater-than-15-char-and-value-length-is-greater-than-100-char/270248/8).

---

_[View the full topic](https://discuss.elastic.co/t/revome-over-gsub/306460)._
