# Logstash , multiple indexs using same ILM and index template and alias error

**URL:** <https://discuss.elastic.co/t/logstash-multiple-indexs-using-same-ilm-and-index-template-and-alias-error/333092>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 10, 2023, 1:43pm UTC](https://discuss.elastic.co/t/logstash-multiple-indexs-using-same-ilm-and-index-template-and-alias-error/333092 "2023-05-10T13:43:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sankrithi43](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@sankrithi43](https://discuss.elastic.co/u/sankrithi43)\
**Post date:** [May 10, 2023, 1:43pm UTC](https://discuss.elastic.co/t/logstash-multiple-indexs-using-same-ilm-and-index-template-and-alias-error/333092/1 "2023-05-10T13:43:06Z")

</div>

Hi ,

below is my task to setup and struggling with ILM issue and looking forward if any help here.

- i setup and configured filebeat and logstash on kubernetes cluster successfully.

- since we had multiple application services on server and each application is from different developers so i set up logstash to create indexs based on the application name filed from logs and thats working too

- now problem is for easy maintenance and based on server i setup single index template and single ILM for all these index .but i get alias problem. is there a way to set multiple alias for rolling index to work?

i don't want multiple ILM and index template based on application.

i keep getting below error for index

```auto
llegal_argument_exception: setting [index.lifecycle.rollover_alias] for index [service_index_00001] is empty or not defined

```

i am using latest version of ELK stack cloud

---

<div class="post-metadata">

**Author:** ![Mark\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_s/32/98686_2.png) [@Mark\_S](https://discuss.elastic.co/u/Mark_S)\
**Post date:** [May 11, 2023, 8:38am UTC](https://discuss.elastic.co/t/logstash-multiple-indexs-using-same-ilm-and-index-template-and-alias-error/333092/2 "2023-05-11T08:38:49Z")

</div>

It is important to do the steps with the correct order: 1) First create ilm, 2) then the template and after that 3) you bootstrap the first index (you create an the first index e.g. aliasname\_000001). Logstash should be sending to aliasname.

---

<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 8, 2023, 8:39am UTC](https://discuss.elastic.co/t/logstash-multiple-indexs-using-same-ilm-and-index-template-and-alias-error/333092/3 "2023-06-08T08:39:31Z")

</div>

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