# How to create a new Date format - GROK

**URL:** <https://discuss.elastic.co/t/how-to-create-a-new-date-format-grok/156401>\
**Category:** Logstash\
**Created:** [November 13, 2018, 7:37am UTC](https://discuss.elastic.co/t/how-to-create-a-new-date-format-grok/156401 "2018-11-13T07:37:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rotem\_lom](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rotem\_lom](https://discuss.elastic.co/u/rotem_lom)\
**Post date:** [November 13, 2018, 7:37am UTC](https://discuss.elastic.co/t/how-to-create-a-new-date-format-grok/156401/1 "2018-11-13T07:37:19Z")

</div>

Hi There,  
Unfortunately I don't find timestamp pattern fits to my log:

> 2018 Aug 04 04:27:49.756 BLA BLA BLA...

So far I using the following pattern to handle this part:

> %{YEAR} %{MONTH} %{MONTHDAY} %{TIME}

It does not help me that much.

My question is, how can I put all these parts under one field?  
Thanks,

---

<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:** [December 11, 2018, 7:37am UTC](https://discuss.elastic.co/t/how-to-create-a-new-date-format-grok/156401/2 "2018-12-11T07:37:22Z")

</div>

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