# Can't parse @timestamp

**URL:** <https://discuss.elastic.co/t/cant-parse-timestamp/131522>\
**Category:** Logstash\
**Created:** [May 11, 2018, 5:27pm UTC](https://discuss.elastic.co/t/cant-parse-timestamp/131522 "2018-05-11T17:27:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Murashov](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@Sergey\_Murashov](https://discuss.elastic.co/u/Sergey_Murashov)\
**Post date:** [May 11, 2018, 5:27pm UTC](https://discuss.elastic.co/t/cant-parse-timestamp/131522/1 "2018-05-11T17:27:46Z")

</div>

I get netflow data and I need replace @timestamp to correct.  
I use this:  
ruby {  
code =\> 'event.set("temp", Time.now)'  
}  
date {  
match =\> ["temp", "ISO8601"]  
target =\> "@timestamp"  
timezone =\> "Europe/Moscow"  
}  
In rubydebug i see [0] "\_dateparsefailure" but @timestamp from netflow look like 2010-04-13T06:54:25.000Z. This is ISO8601.  
I try to use match =\> ["temp", "yyyy-MM-dd'T'HH:mm:ss.SSS"]. Not work.  
Where is my mistake?

---

<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 11, 2018, 6:55pm UTC](https://discuss.elastic.co/t/cant-parse-timestamp/131522/2 "2018-05-11T18:55:33Z")

</div>

It should be "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"

---

<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 8, 2018, 6:55pm UTC](https://discuss.elastic.co/t/cant-parse-timestamp/131522/3 "2018-06-08T18:55:39Z")

</div>

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