# Ingest Pipeline parsing the wrong week

**URL:** <https://discuss.elastic.co/t/ingest-pipeline-parsing-the-wrong-week/251456>\
**Category:** Elasticsearch\
**Created:** [October 8, 2020, 2:06pm UTC](https://discuss.elastic.co/t/ingest-pipeline-parsing-the-wrong-week/251456 "2020-10-08T14:06:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonis\_Michael](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/antonis_michael/32/76881_2.png) [@Antonis\_Michael](https://discuss.elastic.co/u/Antonis_Michael)\
**Post date:** [October 8, 2020, 2:06pm UTC](https://discuss.elastic.co/t/ingest-pipeline-parsing-the-wrong-week/251456/1 "2020-10-08T14:06:08Z")

</div>

Hello,

I am trying to parse weekly indices by utilizing the ingest pipelines in elasticsearch but I keep getting a week before the actual week of the year. Would you know what the issue is?

{  
"date\_index\_name" : {  
"date\_rounding" : "w",  
"index\_name\_prefix" : "{{fields.index\_prefix}}",  
"index\_name\_format" : "YYYY.ww",  
"ignore\_failure" : false,  
"field" : "timestamp"  
}

Today is the 41st week of the year but the my index shows the 40th.

Thanks a lot for your help.

---

<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 5, 2020, 2:06pm UTC](https://discuss.elastic.co/t/ingest-pipeline-parsing-the-wrong-week/251456/2 "2020-11-05T14:06:24Z")

</div>

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