# Metricbeat ILM Custom Index Name

**URL:** <https://discuss.elastic.co/t/metricbeat-ilm-custom-index-name/186099>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 17, 2019, 2:59pm UTC](https://discuss.elastic.co/t/metricbeat-ilm-custom-index-name/186099 "2019-06-17T14:59:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmcleod](https://avatars.discourse-cdn.com/v4/letter/w/ebca7d/32.png) [@wmcleod](https://discuss.elastic.co/u/wmcleod)\
**Post date:** [June 17, 2019, 2:59pm UTC](https://discuss.elastic.co/t/metricbeat-ilm-custom-index-name/186099/1 "2019-06-17T14:59:00Z")

</div>

Hi,

I am trying to choose a custom index name whilst using ILM in Metricbeat.

I'd like to have the indexes that Metricbeat writes to called metricbeat-department-7.1.1....

My metricbeat.yml contains the following:

setup.ilm.enabled: auto  
setup.ilm.rollover\_alias: "metricbeat-financedept-{agent.version}"  
setup.ilm.pattern: "{now/d}-000001"

The index that this write to is:

metricbeat-7.1.1-2019.06.17-000001

How can I modify the settings so that the destination index is:

metricbeat- **financedept** -7.1.1-2019.06.17-000001

Thanks,

William

---

<div class="post-metadata">

**Author:** ![thekm1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thekm1/32/35926_2.png) [@thekm1](https://discuss.elastic.co/u/thekm1)\
**Post date:** [June 17, 2019, 4:36pm UTC](https://discuss.elastic.co/t/metricbeat-ilm-custom-index-name/186099/2 "2019-06-17T16:36:10Z")

</div>

Hi @wmcleod  
setup.ilm.rollover\_alias is the right place to do what you want.  
Did you restarted the beat after changing the yml file?

Did you try setting it by the `./metricbeat setup -E 'setup.ilm.rollover_alias= "your-pattern"'` command ?

---

<div class="post-metadata">

**Author:** ![wmcleod](https://avatars.discourse-cdn.com/v4/letter/w/ebca7d/32.png) [@wmcleod](https://discuss.elastic.co/u/wmcleod)\
**Post date:** [June 21, 2019, 8:56am UTC](https://discuss.elastic.co/t/metricbeat-ilm-custom-index-name/186099/3 "2019-06-21T08:56:10Z")

</div>

Hi Mathew. It's working OK.

I had been editing the .yml file on the wrong server.

Thanks for your reply.

---

<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:** [July 19, 2019, 8:56am UTC](https://discuss.elastic.co/t/metricbeat-ilm-custom-index-name/186099/4 "2019-07-19T08:56:12Z")

</div>

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