# Filebeat Configuration: How should be configured output.elasticsearch.index and setup.template

**URL:** <https://discuss.elastic.co/t/filebeat-configuration-how-should-be-configured-output-elasticsearch-index-and-setup-template/288960>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 11, 2021, 7:53am UTC](https://discuss.elastic.co/t/filebeat-configuration-how-should-be-configured-output-elasticsearch-index-and-setup-template/288960 "2021-11-11T07:53:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![happyinteger](https://avatars.discourse-cdn.com/v4/letter/h/898d66/32.png) [@happyinteger](https://discuss.elastic.co/u/happyinteger)\
**Post date:** [November 11, 2021, 7:53am UTC](https://discuss.elastic.co/t/filebeat-configuration-how-should-be-configured-output-elasticsearch-index-and-setup-template/288960/1 "2021-11-11T07:53:47Z")

</div>

Hello,  
Here is a section from my filebeat.yml  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/9/39f1e59684d74f2e35e7af73fea358c5bbcf6b64.png)

I'm wondering how **output.Elasticsearch.index** and **setup.template.pattern** are related each other?  
Would such a configuration like this lead any problems (or confusion when Discovering from Kibana UI ) or these two field should be set same?

My stack

- Kibana 7.12.1
- Elasticsearch 7.12.1
- Filebeat 7.9.2

---

<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:** [December 9, 2021, 9:54am UTC](https://discuss.elastic.co/t/filebeat-configuration-how-should-be-configured-output-elasticsearch-index-and-setup-template/288960/2 "2021-12-09T09:54:39Z")

</div>

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