# How to Create a weekly index from filebeat and daily for Metricbeat

**URL:** <https://discuss.elastic.co/t/how-to-create-a-weekly-index-from-filebeat-and-daily-for-metricbeat/232161>\
**Category:** Logstash\
**Created:** [May 12, 2020, 8:03am UTC](https://discuss.elastic.co/t/how-to-create-a-weekly-index-from-filebeat-and-daily-for-metricbeat/232161 "2020-05-12T08:03:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mai\_Waly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mai_waly/32/53763_2.png) [@Mai\_Waly](https://discuss.elastic.co/u/Mai_Waly)\
**Post date:** [May 12, 2020, 8:03am UTC](https://discuss.elastic.co/t/how-to-create-a-weekly-index-from-filebeat-and-daily-for-metricbeat/232161/1 "2020-05-12T08:03:26Z")

</div>

Hi All,

Could you please help in my logstash configuration

Currently we use daily indexes and cluster is block as we soon hit max number of shards

How to change logstash configuration to have a weekly filebeat index and a daily metricbeat index please.

```auto
[root@ies-logstash-do conf.d]# cat elasticsearch-output.conf
output {
  elasticsearch { hosts => ["esearch1:9200","esearch-02:9200","esearch-03:9200"]
   manage_template => false
   index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
  }
    stdout { codec => rubydebug }
}

```

Thanks,

Mai

---

<div class="post-metadata">

**Author:** ![Rahul\_Kumar4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_kumar4/32/67369_2.png) [@Rahul\_Kumar4](https://discuss.elastic.co/u/Rahul_Kumar4)\
**Post date:** [May 12, 2020, 10:50am UTC](https://discuss.elastic.co/t/how-to-create-a-weekly-index-from-filebeat-and-daily-for-metricbeat/232161/2 "2020-05-12T10:50:40Z")

</div>

See this - [[Solved] Weekly indexes instead of daily](https://discuss.elastic.co/t/solved-weekly-indexes-instead-of-daily/56871)

---

<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:** [June 9, 2020, 10:55am UTC](https://discuss.elastic.co/t/how-to-create-a-weekly-index-from-filebeat-and-daily-for-metricbeat/232161/3 "2020-06-09T10:55:04Z")

</div>

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