# dd-MMM-yyyy HH:mm:ss.SSS not replacing with @timestamp

**URL:** <https://discuss.elastic.co/t/dd-mmm-yyyy-hh-mm-ss-sss-not-replacing-with-timestamp/123112>\
**Category:** Logstash\
**Created:** [March 8, 2018, 3:44pm UTC](https://discuss.elastic.co/t/dd-mmm-yyyy-hh-mm-ss-sss-not-replacing-with-timestamp/123112 "2018-03-08T15:44:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uwais\_Ibrahim](https://avatars.discourse-cdn.com/v4/letter/u/b4bc9f/32.png) [@Uwais\_Ibrahim](https://discuss.elastic.co/u/Uwais_Ibrahim)\
**Post date:** [March 8, 2018, 3:44pm UTC](https://discuss.elastic.co/t/dd-mmm-yyyy-hh-mm-ss-sss-not-replacing-with-timestamp/123112/1 "2018-03-08T15:44:31Z")

</div>

Hi @magnusbaeck ,

I have one log file in which the date format is as follows.

14-Jun-2017 04:40:28.120 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/apache-tomcat-8.0.18/webapps/host-manager

My Grok pattern is as follows.

grok {  
match =\> ["message", "(?%{MONTHDAY}-%{MONTH}-%{YEAR} %{HOUR}:%{MINUTE}:%{ISO8601\_SECOND}) %{WORD} [%{GREEDYDATA}] %{JAVACLASS} %{GREEDYDATA}" ]  
}  
date {  
match =\> ["timestamp", "dd-MMM-yyyy HH:mm:ss.SSS"]  
target =\> "@timestamp"  
}

But this is not replacing the @timestamp with real log time stamp(14-Jun-2017 04:40:28.120). Please help me how can I rectify this.

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:** [April 5, 2018, 3:44pm UTC](https://discuss.elastic.co/t/dd-mmm-yyyy-hh-mm-ss-sss-not-replacing-with-timestamp/123112/2 "2018-04-05T15:44:53Z")

</div>

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