# ILM and custom index names

**URL:** <https://discuss.elastic.co/t/ilm-and-custom-index-names/277563>\
**Category:** Beats\
**Tags:** ilm-index-lifecycle-management, filebeat\
**Created:** [July 1, 2021, 2:10pm UTC](https://discuss.elastic.co/t/ilm-and-custom-index-names/277563 "2021-07-01T14:10:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![muhdiekuh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muhdiekuh/32/88548_2.png) [@muhdiekuh](https://discuss.elastic.co/u/muhdiekuh)\
**Post date:** [July 1, 2021, 2:10pm UTC](https://discuss.elastic.co/t/ilm-and-custom-index-names/277563/1 "2021-07-01T14:10:11Z")

</div>

Hi,

I'm using ILM with filebeat. Right now I'm using the default configuration.

I'd like to adjust it a little bit now, but I'm not sure if what I want to do is actually possible. I'd like to have a separate index for some of my log messages - for instance one with severity DEBUG, because those should be removed earlier than the rest. Is that still possible with filebeat + ILM? If so, do you have any hints on how to achieve this? 🤔

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 5, 2021, 2:24am UTC](https://discuss.elastic.co/t/ilm-and-custom-index-names/277563/2 "2021-07-05T02:24:44Z")

</div>

You can. This currently get's a little complex though because you need to filter out those messages in Filebeat and then put them in their own index + ILM policy.

---

<div class="post-metadata">

**Author:** ![muhdiekuh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muhdiekuh/32/88548_2.png) [@muhdiekuh](https://discuss.elastic.co/u/muhdiekuh)\
**Post date:** [July 5, 2021, 8:21am UTC](https://discuss.elastic.co/t/ilm-and-custom-index-names/277563/3 "2021-07-05T08:21:34Z")

</div>

In that case I would need to manually define the ILM policies though, right?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 5, 2021, 11:25pm UTC](https://discuss.elastic.co/t/ilm-and-custom-index-names/277563/4 "2021-07-05T23:25:03Z")

</div>

Correct.

---

<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:** [August 3, 2021, 1:25am UTC](https://discuss.elastic.co/t/ilm-and-custom-index-names/277563/5 "2021-08-03T01:25:32Z")

</div>

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