# Simple GROK pattern not parsable

**URL:** <https://discuss.elastic.co/t/simple-grok-pattern-not-parsable/143262>\
**Category:** Logstash\
**Created:** [August 7, 2018, 7:41am UTC](https://discuss.elastic.co/t/simple-grok-pattern-not-parsable/143262 "2018-08-07T07:41:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghuveer\_SJ](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Raghuveer\_SJ](https://discuss.elastic.co/u/Raghuveer_SJ)\
**Post date:** [August 7, 2018, 7:41am UTC](https://discuss.elastic.co/t/simple-grok-pattern-not-parsable/143262/1 "2018-08-07T07:41:14Z")

</div>

Its weird that GROK pattern is not parsing the string :

```
org.dozer.config.GlobalSettings.loadGlobalSettings

%{JAVACLASS:class}\.%{JAVAMETHOD:method}

```

I see compile error at [https://grokdebug.herokuapp.com/](https://grokdebug.herokuapp.com/). Please suggest.

---

<div class="post-metadata">

**Author:** ![Charaf\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charaf_ahmed/32/30467_2.png) [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)\
**Post date:** [August 7, 2018, 7:54am UTC](https://discuss.elastic.co/t/simple-grok-pattern-not-parsable/143262/2 "2018-08-07T07:54:58Z")

</div>

> [@Raghuveer\_SJ](#):
>
> %{JAVACLASS:class}.%{JAVAMETHOD:method}

`org.dozer.config.GlobalSettings.loadGlobalSettings`

`%{WORD:1}.%{WORD:2}`

```
    {
  "1": [
    [
      "org"
    ]
  ],
  "2": [
    [
      "dozer"
    ]
  ]
}

```

---

<div class="post-metadata">

**Author:** ![Raghuveer\_SJ](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Raghuveer\_SJ](https://discuss.elastic.co/u/Raghuveer_SJ)\
**Post date:** [August 7, 2018, 7:57am UTC](https://discuss.elastic.co/t/simple-grok-pattern-not-parsable/143262/3 "2018-08-07T07:57:31Z")

</div>

This is not what I am expecting. An output similar to what the below gives.

```
org.dozer.config.GlobalSettings.loadGlobalSettings
%{JAVACLASS:class}\.%{WORD:method}

```

But I think JAVAMETHOD should be the perfect fit but not sure why its not working. Can you see what I mean ?

---

<div class="post-metadata">

**Author:** ![Charaf\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charaf_ahmed/32/30467_2.png) [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)\
**Post date:** [August 7, 2018, 7:59am UTC](https://discuss.elastic.co/t/simple-grok-pattern-not-parsable/143262/4 "2018-08-07T07:59:42Z")

</div>

I think this link could help you [http://grokconstructor.appspot.com/do/construction](http://grokconstructor.appspot.com/do/construction)

---

<div class="post-metadata">

**Author:** ![Raghuveer\_SJ](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Raghuveer\_SJ](https://discuss.elastic.co/u/Raghuveer_SJ)\
**Post date:** [August 7, 2018, 8:04am UTC](https://discuss.elastic.co/t/simple-grok-pattern-not-parsable/143262/5 "2018-08-07T08:04:44Z")

</div>

No the link I found is better. This link is quite generic and pattern matching can get quite specific. But my question remains same why `%{JAVAMETHOD:method}` is not working.

---

<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:** [September 4, 2018, 8:04am UTC](https://discuss.elastic.co/t/simple-grok-pattern-not-parsable/143262/6 "2018-09-04T08:04:56Z")

</div>

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