# Beats-7.1.1 does not create index for custom pattern

**URL:** <https://discuss.elastic.co/t/beats-7-1-1-does-not-create-index-for-custom-pattern/187092>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 24, 2019, 9:26am UTC](https://discuss.elastic.co/t/beats-7-1-1-does-not-create-index-for-custom-pattern/187092 "2019-06-24T09:26:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rebirther](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rebirther/32/19228_2.png) [@rebirther](https://discuss.elastic.co/u/rebirther)\
**Post date:** [June 24, 2019, 9:26am UTC](https://discuss.elastic.co/t/beats-7-1-1-does-not-create-index-for-custom-pattern/187092/1 "2019-06-24T09:26:16Z")

</div>

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_compression
setup.ilm.enabled: false

output.elasticsearch:
  hosts: ["127.0.0.1:9200"]
  username: "elastic"
  password: " ***********"
  index: "m-127.0.0.1-%{+yyyy.MM.dd}"

```

But at same time, index template and index itself are not created.

P.S. If run with standard settings in metricbeat.yml, template and index will be created with default name and settings.

User for beats has superuser permissions.

---

<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:58pm UTC](https://discuss.elastic.co/t/beats-7-1-1-does-not-create-index-for-custom-pattern/187092/2 "2019-06-24T21:58:39Z")

</div>

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

> [@Unable to change the elasticsearch indexname in herbeat 6.5 version](https://discuss.elastic.co/t/unable-to-change-the-elasticsearch-indexname-in-herbeat-6-5-version/187104/2):
>
> 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. Thanks.

Thanks.

---

<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 22, 2019, 9:58pm UTC](https://discuss.elastic.co/t/beats-7-1-1-does-not-create-index-for-custom-pattern/187092/3 "2019-07-22T21:58:40Z")

</div>

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