# Date pattern match help needed

**URL:** <https://discuss.elastic.co/t/date-pattern-match-help-needed/192087>\
**Category:** Logstash\
**Created:** [July 24, 2019, 4:05pm UTC](https://discuss.elastic.co/t/date-pattern-match-help-needed/192087 "2019-07-24T16:05:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arshadazad](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@arshadazad](https://discuss.elastic.co/u/arshadazad)\
**Post date:** [July 24, 2019, 4:05pm UTC](https://discuss.elastic.co/t/date-pattern-match-help-needed/192087/1 "2019-07-24T16:05:52Z")

</div>

Hi All ,

I have a date format like "Jul 22, 2019 4:54:10 PM CEST" . I am trying to find a pattern for a date match but i am unable to .

Can someone please help ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 24, 2019, 4:15pm UTC](https://discuss.elastic.co/t/date-pattern-match-help-needed/192087/2 "2019-07-24T16:15:35Z")

</div>

CEST is not a timezone that [Joda](http://joda-time.sourceforge.net/timezones.html) understands. You can use mutate to replace it with something it does understand

```
mutate { gsub => ["someField", "CEST$", "region/location"] }

```

then match it using

```
date { match => ["someField", "MMM dd, YYYY hh:mm:ss a ZZZ"] }
```

---

<div class="post-metadata">

**Author:** ![arshadazad](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@arshadazad](https://discuss.elastic.co/u/arshadazad)\
**Post date:** [July 24, 2019, 4:46pm UTC](https://discuss.elastic.co/t/date-pattern-match-help-needed/192087/3 "2019-07-24T16:46:43Z")

</div>

Thank you for that amazingly quick response . The suggestion worked for me .

---

<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:** [August 21, 2019, 4:46pm UTC](https://discuss.elastic.co/t/date-pattern-match-help-needed/192087/4 "2019-08-21T16:46:46Z")

</div>

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