# Ww is returning a week in the future - why?

**URL:** <https://discuss.elastic.co/t/ww-is-returning-a-week-in-the-future-why/144279>\
**Category:** Logstash\
**Created:** [August 14, 2018, 6:00am UTC](https://discuss.elastic.co/t/ww-is-returning-a-week-in-the-future-why/144279 "2018-08-14T06:00:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![francisaugusto](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@francisaugusto](https://discuss.elastic.co/u/francisaugusto)\
**Post date:** [August 14, 2018, 6:00am UTC](https://discuss.elastic.co/t/ww-is-returning-a-week-in-the-future-why/144279/1 "2018-08-14T06:00:45Z")

</div>

Hi!

I am experiencing a weird thing. I am using the following pattern on the output of logstash:

`index => "{{logowner}}-%{application}-%{+xxxx.ww}”`

However, I am getting errors saying that the index doesn't exist, and when I see the error logs on Kibana, I see that the index where the data is being attempted to be saved is like this:

`logowner-application-2018.51`

What could be causing this?

---

<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:** [August 14, 2018, 11:59am UTC](https://discuss.elastic.co/t/ww-is-returning-a-week-in-the-future-why/144279/2 "2018-08-14T11:59:27Z")

</div>

For what date are you getting 2018.51?

---

<div class="post-metadata">

**Author:** ![francisaugusto](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@francisaugusto](https://discuss.elastic.co/u/francisaugusto)\
**Post date:** [August 23, 2018, 6:06am UTC](https://discuss.elastic.co/t/ww-is-returning-a-week-in-the-future-why/144279/3 "2018-08-23T06:06:51Z")

</div>

I found out what the problem was. The log was from a macOS machine and didn't have year information, so logstash interpreted it as of being of this year. So Oct 23rd (2017) became Oct 23rd 2018.

---

<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:** [September 20, 2018, 6:06am UTC](https://discuss.elastic.co/t/ww-is-returning-a-week-in-the-future-why/144279/4 "2018-09-20T06:06:57Z")

</div>

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