# Extract date from log message - Logstash

**URL:** <https://discuss.elastic.co/t/extract-date-from-log-message-logstash/213648>\
**Category:** Logstash\
**Created:** [January 3, 2020, 3:56am UTC](https://discuss.elastic.co/t/extract-date-from-log-message-logstash/213648 "2020-01-03T03:56:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [January 3, 2020, 3:56am UTC](https://discuss.elastic.co/t/extract-date-from-log-message-logstash/213648/1 "2020-01-03T03:56:52Z")

</div>

Hi,  
I have this situation where I have installed filebeat in a server to monitor OASIS application logs.  
Their log is not very constant and has multiple formats across 100 files.

Is there a way to pickup the time of the event in the log message without a GROK? The @timestamp shows the time of when the logs were parsed in Logstash, so thats not ideally correct.

The logs only follow a limited number of date patterns, which I want to extract from the message. Nothing else.

Thanks!

Regards,  
Katara

---

<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:** [January 31, 2020, 3:56am UTC](https://discuss.elastic.co/t/extract-date-from-log-message-logstash/213648/2 "2020-01-31T03:56:58Z")

</div>

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