# Filebeat error when setting index name

**URL:** <https://discuss.elastic.co/t/filebeat-error-when-setting-index-name/316680>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 15, 2022, 10:44am UTC](https://discuss.elastic.co/t/filebeat-error-when-setting-index-name/316680 "2022-10-15T10:44:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolas1306](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolas1306/32/111507_2.png) [@Nikolas1306](https://discuss.elastic.co/u/Nikolas1306)\
**Post date:** [October 15, 2022, 10:44am UTC](https://discuss.elastic.co/t/filebeat-error-when-setting-index-name/316680/1 "2022-10-15T10:44:37Z")

</div>

```auto
filebeat.inputs:
  - type: log
    enabled: true
    paths:
        - /FSEBroker\*.*
      

output.elasticsearch:
  hosts: ["http://172.19.1.12:9200"]
  protocol: "http"
  index: "fss2-%{+yyyy.MM.dd}"

```

log error

```auto

G:\>G:\filebeat-7.13.0-windows-x86_64\filebeat.exe -c G:\filebeatFs1.yml -e
2022-10-15T12:42:40.455+0200 INFO instance/beat.go:665 Home path: [G:\filebeat-7.13.0-windows-x86_64] Config path: [G:\filebeat-7.13.0-windows-x86_64] Data path: [G:\filebeat-7.13.0-windows-x86_64\data] Logs path: [G:\filebeat-7.13.0-windows-x86_64\logs]
2022-10-15T12:42:40.455+0200 INFO instance/beat.go:673 Beat ID: 38f0575b-c446-40d3-b677-8ae211f7dcf2
2022-10-15T12:42:40.457+0200 INFO instance/beat.go:391 filebeat stopped.
2022-10-15T12:42:40.457+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

```

---

<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:** [November 12, 2022, 12:44pm UTC](https://discuss.elastic.co/t/filebeat-error-when-setting-index-name/316680/2 "2022-11-12T12:44:45Z")

</div>

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