# Unable to parse datestamp

**URL:** <https://discuss.elastic.co/t/unable-to-parse-datestamp/180746>\
**Category:** Logstash\
**Created:** [May 13, 2019, 6:56am UTC](https://discuss.elastic.co/t/unable-to-parse-datestamp/180746 "2019-05-13T06:56:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhil\_Pillai](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@Nikhil\_Pillai](https://discuss.elastic.co/u/Nikhil_Pillai)\
**Post date:** [May 13, 2019, 6:56am UTC](https://discuss.elastic.co/t/unable-to-parse-datestamp/180746/1 "2019-05-13T06:56:40Z")

</div>

Hi,

Unable to parse datestamp as per the following log pattern.  
`[03/05/19 05:38:00:000 IST] ERROR scheduler.EDISFileReaderTask: @@ Scheduler StepNumber 3 (incoming folder is empty OR it doesn't have EXCEL files) @@`

Parsing works in online grok debugger but doesn't work with the grok debugger available in kibana one.

[%{DATESTAMP} %{WORD:TimeZone}] %{WORD:LogLevel} %{DATA:JAVACLASS}: %{GREEDYDATA:message}

Anyone faced similar issue and what was their workaround.

Regards,  
Nikhil

---

<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:** [May 13, 2019, 2:13pm UTC](https://discuss.elastic.co/t/unable-to-parse-datestamp/180746/2 "2019-05-13T14:13:30Z")

</div>

I would do that with dissect rather than grok

```
dissect { mapping => { "message" => "[%{timestamp} %{+timestamp} %{timezone}] %{loglevel} %{class} %{restOfLine}" } }
```

---

<div class="post-metadata">

**Author:** ![Nikhil\_Pillai](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@Nikhil\_Pillai](https://discuss.elastic.co/u/Nikhil_Pillai)\
**Post date:** [May 13, 2019, 4:30pm UTC](https://discuss.elastic.co/t/unable-to-parse-datestamp/180746/3 "2019-05-13T16:30:49Z")

</div>

> [@Nikhil\_Pillai](#):
>
> [%{DATESTAMP} %{WORD:TimeZone}] %{WORD:LogLevel} %{DATA:JAVACLASS}: %{GREEDYDATA:message}

Was able to make it work using the following grok pattern but thanks anyway.  
[%{DATESTAMP:timestamp} %{WORD:TimeZone}] %{WORD:LogLevel} %{JAVACLASS:JAVACLASS}: %{GREEDYDATA:message}

Close thread...

Regards,  
Nikhil

---

<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:** [June 10, 2019, 4:30pm UTC](https://discuss.elastic.co/t/unable-to-parse-datestamp/180746/4 "2019-06-10T16:30:53Z")

</div>

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