# Issue with converting date/time log entry into timestamp field

**URL:** <https://discuss.elastic.co/t/issue-with-converting-date-time-log-entry-into-timestamp-field/107908>\
**Category:** Logstash\
**Created:** [November 16, 2017, 10:54am UTC](https://discuss.elastic.co/t/issue-with-converting-date-time-log-entry-into-timestamp-field/107908 "2017-11-16T10:54:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uher3805](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uher3805/32/49121_2.png) [@uher3805](https://discuss.elastic.co/u/uher3805)\
**Post date:** [November 16, 2017, 10:54am UTC](https://discuss.elastic.co/t/issue-with-converting-date-time-log-entry-into-timestamp-field/107908/1 "2017-11-16T10:54:52Z")

</div>

Hi, while there are many topics on this I have not been successful to identify the right solution. I am using logstash to parse (GROK) application log entries. Each line start with

2017.11.15 09:10:04.168 (i.e. YYYY.MM.DD HH:MM:SS.SSS)

How can I convert this string into a valid timestamp so I can use this in Elasticsearch/Kibana? Many thanks

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 16, 2017, 12:00pm UTC](https://discuss.elastic.co/t/issue-with-converting-date-time-log-entry-into-timestamp-field/107908/2 "2017-11-16T12:00:02Z")

</div>

Use a date filter with the pattern `YYYY.MM.dd HH:mm:ss.SSS`.

---

<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 14, 2017, 12:00pm UTC](https://discuss.elastic.co/t/issue-with-converting-date-time-log-entry-into-timestamp-field/107908/3 "2017-12-14T12:00:04Z")

</div>

Closed on December 14, 2017, 12:00pm UTC

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