# I can't redirect output to a custom index

**URL:** <https://discuss.elastic.co/t/i-cant-redirect-output-to-a-custom-index/199153>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 11, 2019, 10:36pm UTC](https://discuss.elastic.co/t/i-cant-redirect-output-to-a-custom-index/199153 "2019-09-11T22:36:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel\_a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_a/32/48390_2.png) [@daniel\_a](https://discuss.elastic.co/u/daniel_a)\
**Post date:** [September 11, 2019, 10:36pm UTC](https://discuss.elastic.co/t/i-cant-redirect-output-to-a-custom-index/199153/1 "2019-09-11T22:36:53Z")

</div>

I can't redirect output to a custom index from a filebeat. It constantly loads the default filebeat template 7.3.1. Any idea where should I look? Logs are getting send to the filebeat-\* index.

```
#==================== Elasticsearch template setting ==========================
setup.template.enabled: false
setup.template.name: 'NEW_INDEX_NAME'
setup.template.pattern: 'NEW_INDEX_NAME-*'
setup.template.settings:
   index.number_of_shards: 1
#index.codec: best_compression
#_source.enabled: false
```

---

<div class="post-metadata">

**Author:** ![VietCong](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@VietCong](https://discuss.elastic.co/u/VietCong)\
**Post date:** [September 12, 2019, 2:38am UTC](https://discuss.elastic.co/t/i-cant-redirect-output-to-a-custom-index/199153/2 "2019-09-12T02:38:41Z")

</div>

```
output.elasticsearch.index: "customname-%{[agent.version]}-%{+yyyy.MM.dd}"
setup.template.name: "customname"
setup.template.pattern: "customname-*"

```

I think output.elasticsearch.index is the setting you want here.

[https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-template.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-template.html)

---

<div class="post-metadata">

**Author:** ![Himanshu\_Rajput](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@Himanshu\_Rajput](https://discuss.elastic.co/u/Himanshu_Rajput)\
**Post date:** [September 12, 2019, 7:20am UTC](https://discuss.elastic.co/t/i-cant-redirect-output-to-a-custom-index/199153/3 "2019-09-12T07:20:54Z")

</div>

Add the following configuration to filebeat  
"setup.ilm.enabled: false"

---

<div class="post-metadata">

**Author:** ![daniel\_a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_a/32/48390_2.png) [@daniel\_a](https://discuss.elastic.co/u/daniel_a)\
**Post date:** [September 12, 2019, 6:22pm UTC](https://discuss.elastic.co/t/i-cant-redirect-output-to-a-custom-index/199153/4 "2019-09-12T18:22:01Z")

</div>

It's a known issue 🙂

> <https://github.com/elastic/beats/issues/11866>

---

<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:** [October 10, 2019, 6:22pm UTC](https://discuss.elastic.co/t/i-cant-redirect-output-to-a-custom-index/199153/5 "2019-10-10T18:22:06Z")

</div>

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