# Timestamp problem

**URL:** <https://discuss.elastic.co/t/timestamp-problem/153447>\
**Category:** Logstash\
**Created:** [October 22, 2018, 4:37pm UTC](https://discuss.elastic.co/t/timestamp-problem/153447 "2018-10-22T16:37:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wheelq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wheelq/32/35893_2.png) [@wheelq](https://discuss.elastic.co/u/wheelq)\
**Post date:** [October 22, 2018, 4:37pm UTC](https://discuss.elastic.co/t/timestamp-problem/153447/1 "2018-10-22T16:37:45Z")

</div>

I got date saved as a string:"1538644629000". I need it to be saved as a timestamp so it can be used in Kibana. I have tried everything (I think):

date{  
match =\> ["temp\_date", "yyyy-MM-dd'T'HH:mm:ss'.'SSS'Z'"]  
target =\> "temp\_date"  
}

And it doesn't work (RHEL 6), and temp\_date field still contains old 13 character value. I have tried adding timezone, also no success. Strange thing is, this works on Windows (yes, also tried on RHEL, doesn't work) when I use:

date{  
match =\> ["temp\_date", "yyyy-MM-dd HH:mm:ss"] \<--no T, no SSS, no Z  
target =\> "temp\_date"  
}

Any ideas?

---

<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:** [November 19, 2018, 4:37pm UTC](https://discuss.elastic.co/t/timestamp-problem/153447/2 "2018-11-19T16:37:45Z")

</div>

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