# Set index in filebeat

**URL:** <https://discuss.elastic.co/t/set-index-in-filebeat/217377>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 31, 2020, 1:28pm UTC](https://discuss.elastic.co/t/set-index-in-filebeat/217377 "2020-01-31T13:28:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rguptarg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rguptarg/32/60643_2.png) [@rguptarg](https://discuss.elastic.co/u/rguptarg)\
**Post date:** [January 31, 2020, 1:28pm UTC](https://discuss.elastic.co/t/set-index-in-filebeat/217377/1 "2020-01-31T13:28:28Z")

</div>

Hi,

I am trying to configure Index name at filebeat end, but it's not working and even no error in logs

Configuration:-  
output.elasticsearch:  
hosts: ["IP:9200"]  
username: "elastic"  
password: "changeme"  
output.elasticsearch.index: "ucc\_app-%{+yyyy.MM.dd}"  
setup.template.enabled: false  
setup.template.name: 'ucc\_app'  
setup.template.pattern: "ucc\_app\*"

I can see Index name in Kibana with "filebeat-7.3.2-2020.01.31-000001" pattern.  
please suggest how can I configure required Index name?

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [January 31, 2020, 2:05pm UTC](https://discuss.elastic.co/t/set-index-in-filebeat/217377/2 "2020-01-31T14:05:29Z")

</div>

Hi!

Is seems that it uses the custom index name. Could you remove the `template` settings and try with a bare minimum configuration like:

```auto
output.elasticsearch:
  hosts: ["https://localhost:9200"]
  index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"

```

`setup.template.enabled: false` disables the template loading for sure.

[index setting docs](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#elasticsearch-output)  
[template docs](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-template.html)

C.

---

<div class="post-metadata">

**Author:** ![rguptarg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rguptarg/32/60643_2.png) [@rguptarg](https://discuss.elastic.co/u/rguptarg)\
**Post date:** [January 31, 2020, 4:53pm UTC](https://discuss.elastic.co/t/set-index-in-filebeat/217377/3 "2020-01-31T16:53:35Z")

</div>

Thanks for reply!!!!!

I have tried without template but result is same.

---

<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 28, 2020, 4:53pm UTC](https://discuss.elastic.co/t/set-index-in-filebeat/217377/4 "2020-02-28T16:53:45Z")

</div>

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