# ERROR instance/beat.go:906

**URL:** <https://discuss.elastic.co/t/error-instance-beat-go-906/238611>\
**Category:** Вопросы на русском языке\
**Created:** [June 25, 2020, 7:04am UTC](https://discuss.elastic.co/t/error-instance-beat-go-906/238611 "2020-06-25T07:04:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Bykov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan_bykov/32/71087_2.png) [@Ivan\_Bykov](https://discuss.elastic.co/u/Ivan_Bykov)\
**Post date:** [June 25, 2020, 7:04am UTC](https://discuss.elastic.co/t/error-instance-beat-go-906/238611/1 "2020-06-25T07:04:46Z")

</div>

Filebeat 6.8.10 при старте ругается  
ERROR instance/beat.go:906 Exiting: setup.template.name and setup.template.pattern have to be set if index name is modified

```auto
filebeat .yml такой 

- type: log
paths:
     - /varl/log/messages
path: ${path.config}/modules.d/*.yml
reload.enabled: false

setup.template.settings:
  index.number_of_shards: 3

setup.kibana:
 host: "192.168.0.13:5601"

output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["192.168.0.13:9200"]
  protocol: https
  index: "filebeat-%{[beat.version]}-%{+yyyy.MM.dd}"
  setup.template.name: "filebeat"
  setup.template.pattern: "*-filebeat-%{[beat.version]}-*"
  setup.template.enabled: true
  compression_level: 9

utput.logstash:
  # The Logstash hosts
  hosts: ["192.168.0.13:5044"]

```

В чем загвоздка не пойму гугла почитав.  
Заранее благодарю за помощь.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [June 25, 2020, 2:36pm UTC](https://discuss.elastic.co/t/error-instance-beat-go-906/238611/2 "2020-06-25T14:36:21Z")

</div>

> [@Filebeat Index Issue - template pattern / name](https://discuss.elastic.co/t/filebeat-index-issue-template-pattern-name/133738/2):
>
> Your config seems to be incorrect. setup.template.\* should not go under output.elasticsearch. It stands in the root of the config, as seen here: output.elasticsearch: # Array of hosts to connect to. hosts: ["192.168.1.199:9200"] index: "desktop-%{[beat.version]}-%{+yyyy.MM.dd}" indices: - index: "critical-%{[beat.version]}-%{+yyyy.MM.dd}" when.contains: message: "CRITICAL" - index: "error-%{[beat.version]}-%{+yyyy.MM.dd}" when.contains: message: "ERR"…

---

<div class="post-metadata">

**Author:** ![Ivan\_Bykov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan_bykov/32/71087_2.png) [@Ivan\_Bykov](https://discuss.elastic.co/u/Ivan_Bykov)\
**Post date:** [June 29, 2020, 2:29pm UTC](https://discuss.elastic.co/t/error-instance-beat-go-906/238611/3 "2020-06-29T14:29:38Z")

</div>

Вылечилось так

# Change to true to enable this input configuration.

enabled: true

---

<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:** [July 27, 2020, 2:29pm UTC](https://discuss.elastic.co/t/error-instance-beat-go-906/238611/4 "2020-07-27T14:29:41Z")

</div>

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