# Creating indices with ILM

**URL:** <https://discuss.elastic.co/t/creating-indices-with-ilm/182985>\
**Category:** Logstash\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 28, 2019, 5:27am UTC](https://discuss.elastic.co/t/creating-indices-with-ilm/182985 "2019-05-28T05:27:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikash\_Singh1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikash_singh1/32/42119_2.png) [@Vikash\_Singh1](https://discuss.elastic.co/u/Vikash_Singh1)\
**Post date:** [May 28, 2019, 5:27am UTC](https://discuss.elastic.co/t/creating-indices-with-ilm/182985/1 "2019-05-28T05:27:13Z")

</div>

Is there anyway through which I can directly add ILM to my indices during creation???If i add these lines in my "abc.conf" will it be applied to all new indices created

ilm\_enabled =\> "true"  
ilm\_policy =\> "default-policy"  
ilm\_rollover\_alias =\> "app-logs"  
template\_name =\> "app-logs"

---

<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 25, 2019, 5:27am UTC](https://discuss.elastic.co/t/creating-indices-with-ilm/182985/2 "2019-06-25T05:27:16Z")

</div>

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