# Unable to set custom index name in metricbeat taml file

**URL:** <https://discuss.elastic.co/t/unable-to-set-custom-index-name-in-metricbeat-taml-file/262252>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 26, 2021, 3:51pm UTC](https://discuss.elastic.co/t/unable-to-set-custom-index-name-in-metricbeat-taml-file/262252 "2021-01-26T15:51:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![navin1093](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@navin1093](https://discuss.elastic.co/u/navin1093)\
**Post date:** [January 26, 2021, 3:51pm UTC](https://discuss.elastic.co/t/unable-to-set-custom-index-name-in-metricbeat-taml-file/262252/1 "2021-01-26T15:51:11Z")

</div>

I tried to set custom index name however it was not working. below are my config

```auto
setup.ilm.enabled: false

  output.elasticsearch.index: "%{[metricset.name]}-=-%{[event.module]}%{+yyyy.MM.dd}"
  setup.template.name: "%{[metricset.name]}"
  setup.template.pattern: "%{[metricset.name]}-=-*"

```

---

<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:** [February 23, 2021, 5:51pm UTC](https://discuss.elastic.co/t/unable-to-set-custom-index-name-in-metricbeat-taml-file/262252/2 "2021-02-23T17:51:28Z")

</div>

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