# Cannot specify index name on elastic cloud

**URL:** https://discuss.elastic.co/t/cannot-specify-index-name-on-elastic-cloud/184674
**Category:** Beats
**Tags:** filebeat
**Created:** [June 6, 2019, 11:56pm UTC](https://discuss.elastic.co/t/cannot-specify-index-name-on-elastic-cloud/184674 "2019-06-06T23:56:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bitcoin](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@bitcoin](https://discuss.elastic.co/u/bitcoin)
#### Post date: [June 6, 2019, 11:56pm UTC](https://discuss.elastic.co/t/cannot-specify-index-name-on-elastic-cloud/184674/1 "2019-06-06T23:56:54Z")

</div>

Hello wonderful people!

**I would like to create different indexes for each environment that I have** (test / staging / production)

I am using elastic cloud setup with filebeat 7.1.x but I cannot specify custom index name for some reason.

This is what my filebeat.yaml file looks like;

```
setup.template.name: "test-filebeat"
setup.template.pattern: "test-filebeat-*"

output.elasticsearch:
  index: "test-filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"
  hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
  username: ${ELASTICSEARCH_USERNAME}
  password: ${ELASTICSEARCH_PASSWORD}

cloud.id: ${ELASTIC_CLOUD_ID}
cloud.auth: ${ELASTIC_CLOUD_AUTH}

```

I expect to see it like this: **test-** in front of my indexes... but this is how it shows up:

**filebeat-7.1.1-2019.06.06-000001**

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/4/2492c33fc026a0437d84bbe530133b6008109f82.png)

What am I doing wrong here? I went thru a lot of support articles and cannot figure this out.

---

<div class="post-metadata">

### Author: ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)
#### Post date: [June 7, 2019, 7:15am UTC](https://discuss.elastic.co/t/cannot-specify-index-name-on-elastic-cloud/184674/2 "2019-06-07T07:15:51Z")

</div>

ILM default setting are probably making your setup.template settings ignored. When ILM is enabled, and it is by default, in auto mode, it wins over.

setup.ilm.enabled: false  
if you want to disable ILM.

Check the doc here carefully:  
[https://www.elastic.co/guide/en/beats/filebeat/current/ilm.html](https://www.elastic.co/guide/en/beats/filebeat/current/ilm.html)

---

<div class="post-metadata">

### Author: ![bitcoin](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@bitcoin](https://discuss.elastic.co/u/bitcoin)
#### Post date: [June 7, 2019, 6:24pm UTC](https://discuss.elastic.co/t/cannot-specify-index-name-on-elastic-cloud/184674/3 "2019-06-07T18:24:54Z")

</div>

Thanks for pointing me to right resource @martinr_ubi 👍

I am new to elasticsearch and this wasn't obvious at all. Every single thing I can find online talks about changing output.elasticsearch.index value.

Thank you!

---

<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 5, 2019, 6:24pm UTC](https://discuss.elastic.co/t/cannot-specify-index-name-on-elastic-cloud/184674/4 "2019-07-05T18:24:58Z")

</div>

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