# TimeStamp Off by a month\_Help

**URL:** <https://discuss.elastic.co/t/timestamp-off-by-a-month-help/74111>\
**Category:** Logstash\
**Created:** [February 6, 2017, 7:07pm UTC](https://discuss.elastic.co/t/timestamp-off-by-a-month-help/74111 "2017-02-06T19:07:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshavardan25000](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@harshavardan25000](https://discuss.elastic.co/u/harshavardan25000)\
**Post date:** [February 6, 2017, 7:07pm UTC](https://discuss.elastic.co/t/timestamp-off-by-a-month-help/74111/1 "2017-02-06T19:07:55Z")

</div>

I am trying to parse "20170201 00:54:24 GMT-0600" field from logline and convert it to the @timestamp. I designed a data filter which looks like this "YYYYMMDD HH:mm:ss zZ" but the output becomes 2017-01-01T07:02:01.000Z...can someone please assist me with this?

date {  
match =\> ["SetupTimestamp", "YYYYMMDD HH:mm:ss zZ"]  
locale =\> en  
}

---

<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:** [February 6, 2017, 8:06pm UTC](https://discuss.elastic.co/t/timestamp-off-by-a-month-help/74111/2 "2017-02-06T20:06:29Z")

</div>

Use YYYYMMdd, not YYYYMMDD.

---

<div class="post-metadata">

**Author:** ![harshavardan25000](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@harshavardan25000](https://discuss.elastic.co/u/harshavardan25000)\
**Post date:** [February 6, 2017, 10:02pm UTC](https://discuss.elastic.co/t/timestamp-off-by-a-month-help/74111/3 "2017-02-06T22:02:11Z")

</div>

Yep, thats the one.. Worked well once i changed it to dd. Really appreciate .

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:** [March 6, 2017, 10:02pm UTC](https://discuss.elastic.co/t/timestamp-off-by-a-month-help/74111/4 "2017-03-06T22:02:20Z")

</div>

Closed on March 6, 2017, 10:02pm UTC

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