# Remove field with pattern using mutate

**URL:** <https://discuss.elastic.co/t/remove-field-with-pattern-using-mutate/316966>\
**Category:** Logstash\
**Created:** [October 19, 2022, 8:10am UTC](https://discuss.elastic.co/t/remove-field-with-pattern-using-mutate/316966 "2022-10-19T08:10:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuswanul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuswanul/32/101662_2.png) [@yuswanul](https://discuss.elastic.co/u/yuswanul)\
**Post date:** [October 19, 2022, 8:10am UTC](https://discuss.elastic.co/t/remove-field-with-pattern-using-mutate/316966/1 "2022-10-19T08:10:04Z")

</div>

Hi there,

i want to remove some field based on pattern. for example, i have some field like:  
iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.2  
iso.org.dod.internet.mgmt.mib-2.interfaces.ifEntry.3

and i want to delete them at a time. is it possible if i use mutate to drop these field?

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [October 19, 2022, 9:08am UTC](https://discuss.elastic.co/t/remove-field-with-pattern-using-mutate/316966/2 "2022-10-19T09:08:00Z")

</div>

Check the [prune](https://www.elastic.co/guide/en/logstash/current/plugins-filters-prune.html) plugin.

---

<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 16, 2022, 9:08am UTC](https://discuss.elastic.co/t/remove-field-with-pattern-using-mutate/316966/3 "2022-11-16T09:08:16Z")

</div>

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