# Unable to change the elasticsearch indexname in herbeat 6.5 version

**URL:** https://discuss.elastic.co/t/unable-to-change-the-elasticsearch-indexname-in-herbeat-6-5-version/187104
**Category:** Beats
**Tags:** beats-module
**Created:** [June 24, 2019, 10:55am UTC](https://discuss.elastic.co/t/unable-to-change-the-elasticsearch-indexname-in-herbeat-6-5-version/187104 "2019-06-24T10:55:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)
#### Post date: [June 24, 2019, 9:57pm UTC](https://discuss.elastic.co/t/unable-to-change-the-elasticsearch-indexname-in-herbeat-6-5-version/187104/2 "2019-06-24T21:57:45Z")

</div>

Hi Yogesh, thanks for your post. I also saw a similar post for 7.1.1. I'll see if I can find a common thread in these posts & will let you know.

> [@Beats-7.1.1 does not create index for custom pattern](https://discuss.elastic.co/t/beats-7-1-1-does-not-create-index-for-custom-pattern/187092):
>
> Beats does not create an index from output.elasticsearch.index. I have this configuration for metricbeat: metricbeat.config.modules: path: ${path.config}/modules.d/\*.yml reload.enabled: false setup.template.enabled: true setup.template.overwrite: true setup.template.pattern: "m-\*" setup.template.name: "metricbeat7" setup.template.settings: index.number\_of\_shards: 1 index.number\_of\_replicas: 0 index.refresh\_interval: "15s" index.mapping.total\_fields.limit: 999 index.codec: best\_com…

Thanks.

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-change-the-elasticsearch-indexname-in-herbeat-6-5-version/187104)._
