# Renaming multiple fields that are nested

**URL:** https://discuss.elastic.co/t/renaming-multiple-fields-that-are-nested/299376
**Category:** Logstash
**Created:** [March 10, 2022, 10:57pm UTC](https://discuss.elastic.co/t/renaming-multiple-fields-that-are-nested/299376 "2022-03-10T22:57:08Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![itschobot](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@itschobot](https://discuss.elastic.co/u/itschobot)
#### Post date: [March 10, 2022, 11:27pm UTC](https://discuss.elastic.co/t/renaming-multiple-fields-that-are-nested/299376/3 "2022-03-10T23:27:02Z")

</div>

> [@Badger](#):
>
> Split it into two mutate filters.

thanks badger for the help! I didn't know any better how rename works as I was stuffing it all in one rather than modulating it, I thought it hit the limit or something but it was what you mentioned.

it worked splitting it up, I did see your other post previously regarding renaming using ruby for every k value. Would this approach also be another way to solve what I wanted?

here is the post: [Renaming nested fields](https://discuss.elastic.co/t/renaming-nested-fields/134462)

---

_[View the full topic](https://discuss.elastic.co/t/renaming-multiple-fields-that-are-nested/299376)._
