# Multiple indexes output and ilm coliision

**URL:** <https://discuss.elastic.co/t/multiple-indexes-output-and-ilm-coliision/202481>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 7, 2019, 6:37am UTC](https://discuss.elastic.co/t/multiple-indexes-output-and-ilm-coliision/202481 "2019-10-07T06:37:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aviad\_Hadida](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aviad_hadida/32/46821_2.png) [@Aviad\_Hadida](https://discuss.elastic.co/u/Aviad_Hadida)\
**Post date:** [October 7, 2019, 6:37am UTC](https://discuss.elastic.co/t/multiple-indexes-output-and-ilm-coliision/202481/1 "2019-10-07T06:37:56Z")

</div>

Hi.

I have a use case where i have several index i would like to use. But it seems that index name are not affected when using ilm.  
Look on the linked discussion:

> [@Output to multiple indexes straight from filebeat.yml?](https://discuss.elastic.co/t/output-to-multiple-indexes-straight-from-filebeat-yml/130165):
>
> I'm trying to set up filebeat to ingest 2 different types of logs. They're in different locations and they should output to different indexes. This is what I have so far: filebeat.prospectors: - type: log enabled: true paths: - /var/log/index1/\* json.add\_error\_key: true json.message\_key: log #json.keys\_under\_root: true pipeline: geoip - type: log paths: - /usr/local/index2/\*.log fields: type: "index2" fields\_under\_root: true #============================= File…

Is there a way to achieve this behavior with ilm? How should i do it?

Thanks

---

<div class="post-metadata">

**Author:** ![tsmori](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsmori/32/47626_2.png) [@tsmori](https://discuss.elastic.co/u/tsmori)\
**Post date:** [October 9, 2019, 6:30pm UTC](https://discuss.elastic.co/t/multiple-indexes-output-and-ilm-coliision/202481/2 "2019-10-09T18:30:01Z")

</div>

I need to get this working too. I was able to change the index using the setup.ilm settings, but if the index directives need to be in filebeat.yml, might be stuck. If they can go in the module.yml maybe it work.

---

<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 6, 2019, 6:30pm UTC](https://discuss.elastic.co/t/multiple-indexes-output-and-ilm-coliision/202481/3 "2019-11-06T18:30:06Z")

</div>

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