# Grok for time with UUUU

**URL:** <https://discuss.elastic.co/t/grok-for-time-with-uuuu/264040>\
**Category:** Logstash\
**Created:** [February 11, 2021, 6:09pm UTC](https://discuss.elastic.co/t/grok-for-time-with-uuuu/264040 "2021-02-11T18:09:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![newmember](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@newmember](https://discuss.elastic.co/u/newmember)\
**Post date:** [February 11, 2021, 6:09pm UTC](https://discuss.elastic.co/t/grok-for-time-with-uuuu/264040/1 "2021-02-11T18:09:29Z")

</div>

I am reading this in the grok patterns pages but I dont see a syntax for the time format.  
`# datestamp is YYYY/MM/DD-HH:MM:SS.UUUU (or something like it)`

Is there a grok pattern for this time format?

`10:02:19.9830`

---

<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:** [February 11, 2021, 8:06pm UTC](https://discuss.elastic.co/t/grok-for-time-with-uuuu/264040/2 "2021-02-11T20:06:20Z")

</div>

`%{TIME}` will match that.

---

<div class="post-metadata">

**Author:** ![newmember](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@newmember](https://discuss.elastic.co/u/newmember)\
**Post date:** [February 11, 2021, 9:57pm UTC](https://discuss.elastic.co/t/grok-for-time-with-uuuu/264040/3 "2021-02-11T21:57:28Z")

</div>

Perfect, thank you @Badger

---

<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:** [March 11, 2021, 9:58pm UTC](https://discuss.elastic.co/t/grok-for-time-with-uuuu/264040/4 "2021-03-11T21:58:28Z")

</div>

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