# Unable to create index per day

**URL:** https://discuss.elastic.co/t/unable-to-create-index-per-day/203582
**Category:** Logstash
**Created:** [October 15, 2019, 8:01am UTC](https://discuss.elastic.co/t/unable-to-create-index-per-day/203582 "2019-10-15T08:01:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Mohammad\_Mousavi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad_mousavi/32/56508_2.png) [@Mohammad\_Mousavi](https://discuss.elastic.co/u/Mohammad_Mousavi)
#### Post date: [October 15, 2019, 8:01am UTC](https://discuss.elastic.co/t/unable-to-create-index-per-day/203582/1 "2019-10-15T08:01:32Z")

</div>

Hi, my output config is:  
output {  
elasticsearch {  
hosts =\> ["localhost"]  
manage\_template =\> true  
index =\> "logstash-%{+YYYY.MM.dd}"  
}  
}  
It creates a index like "logstash-2019.10.14-000001" and doesn't create new index per day.  
what is the -000001? and why it doesn't create new index per day?  
I didn't set any Rollup job and I just wanna have index per day.  
I use elk container with logstash and elasticsearch version 7.4.0  
Thanx

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [October 15, 2019, 2:23pm UTC](https://discuss.elastic.co/t/unable-to-create-index-per-day/203582/2 "2019-10-15T14:23:16Z")

</div>

Does setting the 'ilm\_enabled =\> false' option help?

---

<div class="post-metadata">

### Author: ![Mohammad\_Mousavi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad_mousavi/32/56508_2.png) [@Mohammad\_Mousavi](https://discuss.elastic.co/u/Mohammad_Mousavi)
#### Post date: [October 15, 2019, 2:42pm UTC](https://discuss.elastic.co/t/unable-to-create-index-per-day/203582/3 "2019-10-15T14:42:45Z")

</div>

I've added the 'ilm\_enabled =\> false' and now it's ok. thanx.  
but does it disable the ' Index Lifecycle Policies' and 'Rollup Jobs' in Kibana or they are not related at all ?

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [October 15, 2019, 2:49pm UTC](https://discuss.elastic.co/t/unable-to-create-index-per-day/203582/4 "2019-10-15T14:49:02Z")

</div>

I do not think it will affect what you have configured in Kibana but I cannot say for certain.

---

<div class="post-metadata">

### Author: ![wyllys66](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@wyllys66](https://discuss.elastic.co/u/wyllys66)
#### Post date: [October 18, 2019, 6:21pm UTC](https://discuss.elastic.co/t/unable-to-create-index-per-day/203582/5 "2019-10-18T18:21:33Z")

</div>

I had this same issue - (no new indexes were being created with the "logstash-%{+YYYY.MM.dd}" pattern until I disabled the "ilm\_enabled" setting. There was nothing in the logstash or elasticsearch logs telling me why my index wasnt created. This seems like a bug or is it just something that needs to be better documented?

This was with version 7.4.0 for elastic, kibana, and logstash.

---

<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 15, 2019, 6:36pm UTC](https://discuss.elastic.co/t/unable-to-create-index-per-day/203582/6 "2019-11-15T18:36:49Z")

</div>

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