# ILM for each module fileset

**URL:** <https://discuss.elastic.co/t/ilm-for-each-module-fileset/245812>\
**Category:** Beats\
**Tags:** ilm-index-lifecycle-management, filebeat\
**Created:** [August 20, 2020, 7:00pm UTC](https://discuss.elastic.co/t/ilm-for-each-module-fileset/245812 "2020-08-20T19:00:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mweissha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mweissha/32/30469_2.png) [@mweissha](https://discuss.elastic.co/u/mweissha)\
**Post date:** [September 4, 2020, 12:34am UTC](https://discuss.elastic.co/t/ilm-for-each-module-fileset/245812/3 "2020-09-04T00:34:41Z")

</div>

Just in case anyone is following this or see this post i the future. I found the solution to this problem with [this thread](https://discuss.elastic.co/t/ilm-setup-dynamic-alias-in-filebeat/187298/2).

In a nutshell it describes setting up the index lifecycle settings however you want, then you add a template to your index and the key to all of this was to bootstrap the first index with URI encoding like so:

```auto
PUT /%3Cfilebeat-7.1.1-indexname-%7Bnow%2Fd%7D-1%3E {
"aliases": {
"indexname":{
"is_write_index": true
} } } 

```

The URI encoding was what was missing for my previous attempts and this is what fixed it for me. Thanks to [chandra2037](https://discuss.elastic.co/u/chandra2037) for this post.

---

_[View the full topic](https://discuss.elastic.co/t/ilm-for-each-module-fileset/245812)._
