# How to rename some fields by using regex statement

**URL:** <https://discuss.elastic.co/t/how-to-rename-some-fields-by-using-regex-statement/257031>\
**Category:** Logstash\
**Created:** [November 30, 2020, 8:23am UTC](https://discuss.elastic.co/t/how-to-rename-some-fields-by-using-regex-statement/257031 "2020-11-30T08:23:43Z")\
**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:** [November 30, 2020, 3:34pm UTC](https://discuss.elastic.co/t/how-to-rename-some-fields-by-using-regex-statement/257031/2 "2020-11-30T15:34:53Z")

</div>

You could rename a variable set of fields using a filter like [this](https://discuss.elastic.co/t/how-to-dynamically-move-nested-key-value-to-root-level/180006/2).

---

_[View the full topic](https://discuss.elastic.co/t/how-to-rename-some-fields-by-using-regex-statement/257031)._
