# Problem with filebeat configuration \[windows\]

**URL:** <https://discuss.elastic.co/t/problem-with-filebeat-configuration-windows/281069>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 11, 2021, 1:20pm UTC](https://discuss.elastic.co/t/problem-with-filebeat-configuration-windows/281069 "2021-08-11T13:20:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarolinaSii](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@KarolinaSii](https://discuss.elastic.co/u/KarolinaSii)\
**Post date:** [August 11, 2021, 1:20pm UTC](https://discuss.elastic.co/t/problem-with-filebeat-configuration-windows/281069/1 "2021-08-11T13:20:20Z")

</div>

Hi,  
I have problem with filebeat in Windows 10.  
I've got an error

```auto
2021-08-11T15:09:17.139+0200 ERROR instance/beat.go:989 Exiting: setup.template.name and setup.template.pattern have to be set if index name is modified
Exiting: setup.template.name and setup.template.pattern have to be set if index name is modified

```

My configuration in filebeat.yml

```auto
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["{ip address}"]
  index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"
  setup.template.enabled: true
  setup.template.name: "filebeat"
  setup.template.pattern: "filebeat-*"

```

```auto
setup.kibana:
  host: "{ip address}"

```

In Windows services -\>  
 ![filebeat](https://us1.discourse-cdn.com/elastic/original/3X/2/3/235f5f4e6f66704b0070db95ff57858f6dfbfd16.jpeg)

I don't know why I can't start the service in Windows because I am getting an error  
Maybe somebody can help me 🙂  
Thanks!

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [August 12, 2021, 10:56pm UTC](https://discuss.elastic.co/t/problem-with-filebeat-configuration-windows/281069/2 "2021-08-12T22:56:10Z")

</div>

The `setup.*` shouldn't be under `output.elasticsearch`. it should be at the same level.

---

<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:** [September 9, 2021, 10:56pm UTC](https://discuss.elastic.co/t/problem-with-filebeat-configuration-windows/281069/3 "2021-09-09T22:56:54Z")

</div>

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