# Disable automatic creation of daily indexes

**URL:** https://discuss.elastic.co/t/disable-automatic-creation-of-daily-indexes/234293
**Category:** Beats
**Created:** [May 26, 2020, 9:40am UTC](https://discuss.elastic.co/t/disable-automatic-creation-of-daily-indexes/234293 "2020-05-26T09:40:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![michielM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michielm/32/46127_2.png) [@michielM](https://discuss.elastic.co/u/michielM)
#### Post date: [May 26, 2020, 9:40am UTC](https://discuss.elastic.co/t/disable-automatic-creation-of-daily-indexes/234293/1 "2020-05-26T09:40:49Z")

</div>

Hey all,

I recently created custom index names because I needed spaces for customers, and each customer needed an index to link to the space. So that's what I did. I have these indexes now.

- auditbeat-customer1-01/01/2000

- filebeat--customer1-01/01/2000

- metricbeat-customer1-01/01/2000

- auditbeat-customer2-01/01/2000

- filebeat--customer2-01/01/2000

- metricbeat-customer2-01/01/2000

Previously, my indexes would have stayed open until they reached 50GB.  
Now a new index is created every day for each beat. So I am getting new indexes every day, which I rather don't. I'd like to keep the same index until it reaches 50GB.  
But I have no idea on how to do this. Any ideas?

Below is the config of my **beats.yml**  
#=============================== Index management =============================  
setup.ilm.enabled: false

output.elasticsearch.index: "auditbeat-customer1-%{[agent.version]}-%{+yyyy.MM.dd}"  
setup.template.name: "auditbeat-customer1"  
setup.template.pattern: "auditbeat-customer1-_"  
setup.dashboards.index: "auditbeat-customer1-_"

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 26, 2020, 9:46am UTC](https://discuss.elastic.co/t/disable-automatic-creation-of-daily-indexes/234293/2 "2020-05-26T09:46:39Z")

</div>

> [@michielM](#):
>
> I'd like to keep the same index until it reaches 50GB.

You need to use ILM to do this. You can specify custom index names though.

---

<div class="post-metadata">

### Author: ![michielM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michielm/32/46127_2.png) [@michielM](https://discuss.elastic.co/u/michielM)
#### Post date: [May 26, 2020, 10:02am UTC](https://discuss.elastic.co/t/disable-automatic-creation-of-daily-indexes/234293/4 "2020-05-26T10:02:21Z")

</div>

How do I do this? Thanks for the quick reply!

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 26, 2020, 10:00pm UTC](https://discuss.elastic.co/t/disable-automatic-creation-of-daily-indexes/234293/5 "2020-05-26T22:00:47Z")

</div>

[https://www.elastic.co/guide/en/beats/filebeat/current/ilm.html](https://www.elastic.co/guide/en/beats/filebeat/current/ilm.html), and the other beats have similar pages 🙂

---

<div class="post-metadata">

### Author: ![michielM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michielm/32/46127_2.png) [@michielM](https://discuss.elastic.co/u/michielM)
#### Post date: [May 27, 2020, 10:11am UTC](https://discuss.elastic.co/t/disable-automatic-creation-of-daily-indexes/234293/6 "2020-05-27T10:11:06Z")

</div>

So, does it mean that if I set ilm.enabled to auto, I can use custom index names and use my policy?

---

<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 24, 2020, 12:11pm UTC](https://discuss.elastic.co/t/disable-automatic-creation-of-daily-indexes/234293/7 "2020-06-24T12:11:09Z")

</div>

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