# Grok patterns defined twice

**URL:** https://community.graylog.org/t/grok-patterns-defined-twice/3162
**Category:** Graylog Central (peer support)
**Created:** [November 14, 2017, 1:38pm UTC](https://community.graylog.org/t/grok-patterns-defined-twice/3162 "2017-11-14T13:38:10Z")
**Posts on this page:** 4
**Page:** 1

<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: [November 14, 2017, 1:38pm UTC](https://community.graylog.org/t/grok-patterns-defined-twice/3162/1 "2017-11-14T13:38:10Z")

</div>

Hello,  
All grok patterns are defined twice in my Graylog (System --\> Grok Patterns).  
Is it normal or is it a bug ?  
Must I delete all duplicated entries ?

---

<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: [November 14, 2017, 3:55pm UTC](https://community.graylog.org/t/grok-patterns-defined-twice/3162/2 "2017-11-14T15:55:49Z")

</div>

Please check the “grok\_patterns” collection in the MongoDB database used by Graylog for duplicate entries.

While this _should not_ happen, I won’t rule out a bug in importing Grok patterns.

---

<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: [November 15, 2017, 10:34am UTC](https://community.graylog.org/t/grok-patterns-defined-twice/3162/3 "2017-11-15T10:34:19Z")

</div>

This collection contains all grok patterns twice.  
For example:

> db.grok\_patterns.find({“name”:“USER”})  
> { “\_id” : ObjectId(“59aec58243c5805fee919331”), “name” : “USER”, “pattern” : “%{USERNAME}”, “content\_pack” : “59aec58243c5805fee9192e5” }  
> { “\_id” : ObjectId(“59f0ab2143c58073b646bcf6”), “name” : “USER”, “pattern” : “%{USERNAME}”, “content\_pack” : “59aec58243c5805fee9192e5” }

I was in Graylog 2.3.1 and I updated to 2.3.2, it may introduced this bug.

---

<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: [November 29, 2017, 10:34am UTC](https://community.graylog.org/t/grok-patterns-defined-twice/3162/4 "2017-11-29T10:34:27Z")

</div>

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