# Elastic @timestamp off by almost 3 years

**URL:** <https://discuss.elastic.co/t/elastic-timestamp-off-by-almost-3-years/137574>\
**Category:** Elasticsearch\
**Created:** [June 27, 2018, 8:48am UTC](https://discuss.elastic.co/t/elastic-timestamp-off-by-almost-3-years/137574 "2018-06-27T08:48:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![safhw91](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@safhw91](https://discuss.elastic.co/u/safhw91)\
**Post date:** [June 27, 2018, 8:48am UTC](https://discuss.elastic.co/t/elastic-timestamp-off-by-almost-3-years/137574/1 "2018-06-27T08:48:58Z")

</div>

My machine time is correct (i.e. June 2018) and I have no reference to timestamp in my grok parser.

But when I parse my log file with logstash, my @timestamp field for all documents is always "January 1st 2015, 00:10:00.000". What's going on?

Also, I set my index name to be partially based on the current date.  
index =\> "example-%{+YYYY.MM.dd}".  
And my index name is showing up as "example-2014.12.31".

Did I screw up somewhere?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 27, 2018, 8:50am UTC](https://discuss.elastic.co/t/elastic-timestamp-off-by-almost-3-years/137574/2 "2018-06-27T08:50:47Z")

</div>

What does you Logstash configuration look like? What does an event with the incorrect timestamp look like in Elasticsearch?

---

<div class="post-metadata">

**Author:** ![safhw91](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@safhw91](https://discuss.elastic.co/u/safhw91)\
**Post date:** [June 27, 2018, 9:13am UTC](https://discuss.elastic.co/t/elastic-timestamp-off-by-almost-3-years/137574/3 "2018-06-27T09:13:07Z")

</div>

Heh you're right. I set a custom added field to be the new timestamp as October 2015. But it was showing Jan 2015 because my "MM" (month) was incorrectly set as "mm" (minute). So I got totally confused and didn't link the two together as I forgot my custom timestamp was supposed to overwrite the @timestamp.

---

<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:** [July 25, 2018, 9:13am UTC](https://discuss.elastic.co/t/elastic-timestamp-off-by-almost-3-years/137574/4 "2018-07-25T09:13:15Z")

</div>

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