# Grok Pattern for line - custom date

**URL:** <https://discuss.elastic.co/t/grok-pattern-for-line-custom-date/277412>\
**Category:** Logstash\
**Created:** [June 30, 2021, 6:22am UTC](https://discuss.elastic.co/t/grok-pattern-for-line-custom-date/277412 "2021-06-30T06:22:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamikaze\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kamikaze_k/32/77246_2.png) [@Kamikaze\_K](https://discuss.elastic.co/u/Kamikaze_K)\
**Post date:** [June 30, 2021, 6:22am UTC](https://discuss.elastic.co/t/grok-pattern-for-line-custom-date/277412/1 "2021-06-30T06:22:56Z")

</div>

I am trying to use a grok pattern to get the fields from the following. any help with this especially with the custom date?

0E7 10JUN21 23:37:53.8 Track 1 EZ: 100 EX: 72 Speed: 36 mph

I need to get the fields;

"date" "time" "Track 1" "EZ" "EX" "Speed"

I have tried to get the date pattern but with no luck

---

<div class="post-metadata">

**Author:** ![anon33720113](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@anon33720113](https://discuss.elastic.co/u/anon33720113)\
**Post date:** [June 30, 2021, 12:27pm UTC](https://discuss.elastic.co/t/grok-pattern-for-line-custom-date/277412/2 "2021-06-30T12:27:12Z")

</div>

For date use :

```auto
%{INT:date}%{GREEDYDATA:mon}%{BASE10NUM :year}

```

---

<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:** [July 28, 2021, 12:27pm UTC](https://discuss.elastic.co/t/grok-pattern-for-line-custom-date/277412/3 "2021-07-28T12:27:44Z")

</div>

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