# Possible bug with grok pattern\_definitions

**URL:** https://discuss.elastic.co/t/possible-bug-with-grok-pattern-definitions/84433
**Category:** Logstash
**Created:** [May 3, 2017, 3:20pm UTC](https://discuss.elastic.co/t/possible-bug-with-grok-pattern-definitions/84433 "2017-05-03T15:20:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jclose](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jclose](https://discuss.elastic.co/u/jclose)
#### Post date: [May 3, 2017, 3:20pm UTC](https://discuss.elastic.co/t/possible-bug-with-grok-pattern-definitions/84433/1 "2017-05-03T15:20:02Z")

</div>

The following configuration is giving me an error. Can someone test if this is giving them an error as well?

```
filter {
    if [type] == "test" {
        grok {
            pattern_definitions => { 
                "YMD_TS" => "%{YEAR}-%{MONTHNUM}-%{MONTHDAY}" 
            }
        }
    }
}

```

I'm getting the error "Unknown setting 'pattern\_definitions' for grok"

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 5, 2017, 5:52am UTC](https://discuss.elastic.co/t/possible-bug-with-grok-pattern-definitions/84433/2 "2017-05-05T05:52:27Z")

</div>

Make sure you have 3.4.0 or later of the grok filter 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: [June 2, 2017, 6:01am UTC](https://discuss.elastic.co/t/possible-bug-with-grok-pattern-definitions/84433/3 "2017-06-02T06:01:59Z")

</div>

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