# Weekly indices with name as starting day of the week metricbeat

**URL:** <https://discuss.elastic.co/t/weekly-indices-with-name-as-starting-day-of-the-week-metricbeat/104436>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [October 18, 2017, 5:20pm UTC](https://discuss.elastic.co/t/weekly-indices-with-name-as-starting-day-of-the-week-metricbeat/104436 "2017-10-18T17:20:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manikanth\_Reddy](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Manikanth\_Reddy](https://discuss.elastic.co/u/Manikanth_Reddy)\
**Post date:** [October 18, 2017, 5:20pm UTC](https://discuss.elastic.co/t/weekly-indices-with-name-as-starting-day-of-the-week-metricbeat/104436/1 "2017-10-18T17:20:23Z")

</div>

Hi,

As of now, we are using daily indices and are trying to create weekly indices going forward. I have tried configuring indexprefix-%{+xxxx.ww} but it is giving indices by week number out of year. I have been trying to find any solution available but couldn't find any. Could you please help me in this. Thanks.  
today's date: 2017.10.18  
index name should be: indexprefix\_2017.10.16  
Considering 2017.10.16 as first day in the week.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [October 23, 2017, 12:22pm UTC](https://discuss.elastic.co/t/weekly-indices-with-name-as-starting-day-of-the-week-metricbeat/104436/2 "2017-10-23T12:22:22Z")

</div>

I don't fully understand, you want to set the `week` to the first day in the week? I don't think this is possible with the date formatter in filebeat.

---

<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 20, 2017, 12:22pm UTC](https://discuss.elastic.co/t/weekly-indices-with-name-as-starting-day-of-the-week-metricbeat/104436/3 "2017-11-20T12:22:46Z")

</div>

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