# Clarification on index by day and automatically closing them

**URL:** <https://discuss.elastic.co/t/clarification-on-index-by-day-and-automatically-closing-them/66479>\
**Category:** Elasticsearch\
**Created:** [November 18, 2016, 6:22am UTC](https://discuss.elastic.co/t/clarification-on-index-by-day-and-automatically-closing-them/66479 "2016-11-18T06:22:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Houss](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@Houss](https://discuss.elastic.co/u/Houss)\
**Post date:** [November 18, 2016, 6:22am UTC](https://discuss.elastic.co/t/clarification-on-index-by-day-and-automatically-closing-them/66479/1 "2016-11-18T06:22:45Z")

</div>

Hello,

I didn't undertstand quite much about the index by day output in logstash. Will it not result in a tremendious amount of existing indexes overtime ? Isn't that a problem ?  
Also, will those indexes be closed automatically everyday, or will they stay active unless I close them manually ? Because then the shards for those indexes will still be active right ?

Thanks for the insights !

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 18, 2016, 8:27am UTC](https://discuss.elastic.co/t/clarification-on-index-by-day-and-automatically-closing-them/66479/2 "2016-11-18T08:27:12Z")

</div>

Do you need to keep all data around forever?  
If not just use curator to remove old indices every day.  
You can also change Logstash default index name pattern and create indices per month if you wish.

---

<div class="post-metadata">

**Author:** ![Houss](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@Houss](https://discuss.elastic.co/u/Houss)\
**Post date:** [November 18, 2016, 9:16am UTC](https://discuss.elastic.co/t/clarification-on-index-by-day-and-automatically-closing-them/66479/3 "2016-11-18T09:16:18Z")

</div>

We would need to keep data for one year.  
I will consider using an index per month.  
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:** [December 16, 2016, 9:16am UTC](https://discuss.elastic.co/t/clarification-on-index-by-day-and-automatically-closing-them/66479/4 "2016-12-16T09:16:52Z")

</div>

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