# How to mass delete duplicate GROK patterns?

**URL:** <https://community.graylog.org/t/how-to-mass-delete-duplicate-grok-patterns/4867>\
**Category:** Graylog Central (peer support)\
**Created:** [April 5, 2018, 8:56am UTC](https://community.graylog.org/t/how-to-mass-delete-duplicate-grok-patterns/4867 "2018-04-05T08:56:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ovidiu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/ovidiu/32/2094_2.png) [@ovidiu](https://community.graylog.org/u/ovidiu)\
**Post date:** [April 5, 2018, 8:56am UTC](https://community.graylog.org/t/how-to-mass-delete-duplicate-grok-patterns/4867/1 "2018-04-05T08:56:05Z")

</div>

Not sure why but all my GROK patterns show twice. Its entirely possible I imported the same set twice. I can see a delete button to the right of each pattern but that would take me hours, is there a quick way?

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [April 5, 2018, 9:45am UTC](https://community.graylog.org/t/how-to-mass-delete-duplicate-grok-patterns/4867/2 "2018-04-05T09:45:46Z")

</div>

You can drop the “grok\_patterns” collection in MongoDB and re-import your patterns.

FWIW, if there really are duplicate Grok patterns, this is a bug. In this case please create a bug report at [https://github.com/Graylog2/graylog2-server/issues](https://github.com/Graylog2/graylog2-server/issues).

---

<div class="post-metadata">

**Author:** ![ovidiu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/ovidiu/32/2094_2.png) [@ovidiu](https://community.graylog.org/u/ovidiu)\
**Post date:** [April 5, 2018, 10:33am UTC](https://community.graylog.org/t/how-to-mass-delete-duplicate-grok-patterns/4867/3 "2018-04-05T10:33:41Z")

</div>

I’m 99% sure I caused this by applying the content pack twice as there is no way to see if this has already happened or not. Also, this is simply a cosmetical / OCD issue for me and in no way impacts the way Graylog is working for me.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/4/4fa90725ae3388fed30b53a8ba9f7a0e0153eff0.png)

---

<div class="post-metadata">

**Author:** ![ovidiu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/ovidiu/32/2094_2.png) [@ovidiu](https://community.graylog.org/u/ovidiu)\
**Post date:** [April 5, 2018, 10:34am UTC](https://community.graylog.org/t/how-to-mass-delete-duplicate-grok-patterns/4867/4 "2018-04-05T10:34:00Z")

</div>

Couldn’t add 2 images in one post.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/1/1fc02db9b7ba2277296373598a550c7af46640c3.png)

---

<div class="post-metadata">

**Author:** ![frantz](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@frantz](https://community.graylog.org/u/frantz)\
**Post date:** [April 5, 2018, 11:46am UTC](https://community.graylog.org/t/how-to-mass-delete-duplicate-grok-patterns/4867/5 "2018-04-05T11:46:25Z")

</div>

Hello,  
I have exactly the same issue: [https://community.graylog.org/t/grok-patterns-defined-twice/3162](https://community.graylog.org/t/grok-patterns-defined-twice/3162)  
I am sure I have never clicked on Apply Content Pack.  
I think in my case duplicate entries came from the Graylog update.

---

<div class="post-metadata">

**Author:** ![ovidiu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/ovidiu/32/2094_2.png) [@ovidiu](https://community.graylog.org/u/ovidiu)\
**Post date:** [April 5, 2018, 12:30pm UTC](https://community.graylog.org/t/how-to-mass-delete-duplicate-grok-patterns/4867/6 "2018-04-05T12:30:50Z")

</div>

I saw your thread but it was closed so I opened my own 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [April 19, 2018, 12:43pm UTC](https://community.graylog.org/t/how-to-mass-delete-duplicate-grok-patterns/4867/7 "2018-04-19T12:43:08Z")

</div>

Closed on April 19, 2018, 12:43pm UTC

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