# Help with custom pattern

**URL:** <https://discuss.elastic.co/t/help-with-custom-pattern/245917>\
**Category:** Logstash\
**Created:** [August 21, 2020, 12:32pm UTC](https://discuss.elastic.co/t/help-with-custom-pattern/245917 "2020-08-21T12:32:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Morin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_morin/32/47016_2.png) [@Jonathan\_Morin](https://discuss.elastic.co/u/Jonathan_Morin)\
**Post date:** [August 21, 2020, 12:32pm UTC](https://discuss.elastic.co/t/help-with-custom-pattern/245917/1 "2020-08-21T12:32:01Z")

</div>

Hi guys,

i'm trying to put parse a JDE log but i keep having a \_grokparsefailure and i really don't see where my problem is.

Here's what i have

```auto
filter {
        grok {
                pattern_definitions => { "JDEPROCESS" => "([0-9]{2,5})"
                                          "JDEMESSAGE" => "(.*)"
                                          "JDESUBPROCESS" => "([0-9]{2,5})"
                                          "JDEDATE" => "([A-Z][a-z]{3} [A-Z][a-z]{3} [0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6})"
                                          "JDESPACE" => "( *)"
                                          "JDETAB" => "(\t)"
                }
                 match => { "message" => "%{JDEPROCESS:jdeprocess}\/%{JDESUBPROCESS:jdesubprocess}%{JDETAB:jdetab}%{JDEMESSAGE:jdemessage}"}
        }#Close Grok

```

And my log input is like this :

```auto
 10944/8816	Thu Aug 20 10:32:27.004000 ipcmisc.c348

```

any idea?

Regards

---

<div class="post-metadata">

**Author:** ![Jonathan\_Morin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_morin/32/47016_2.png) [@Jonathan\_Morin](https://discuss.elastic.co/u/Jonathan_Morin)\
**Post date:** [August 21, 2020, 1:06pm UTC](https://discuss.elastic.co/t/help-with-custom-pattern/245917/2 "2020-08-21T13:06:02Z")

</div>

Nevermind some coffee did the trick 😉

```auto
 filter {
        grok {
                pattern_definitions => { "JDEPROCESS" => "([0-9]{2,5})"
                                          "JDEMESSAGE" => "(.*)"
                                          "JDESUBPROCESS" => "([0-9]{2,5})"
                                          "JDEDATE" => "([A-Za-z]{3}.[A-Za-z]{3}.[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6})"
                                          "JDESPACE" => "( *)"
                                          "JDETAB" => "(\t)"
                }
                 match => { "message" => "%{JDEPROCESS:jdeprocess}\/%{JDESUBPROCESS:jdesubprocess}%{SPACE}\t%{JDEDATE:jdetimestamp}%{SPACE}\t%{JDEMESSAGE:jdemessage}"}
        }#Close Grok

```

---

<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 18, 2020, 1:06pm UTC](https://discuss.elastic.co/t/help-with-custom-pattern/245917/3 "2020-09-18T13:06:04Z")

</div>

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