Problem with filebeat configuration [windows]

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

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

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-*"
setup.kibana:
  host: "{ip address}"

In Windows services ->
filebeat

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

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

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