# Changing index pattern refuses to start

**URL:** <https://discuss.elastic.co/t/changing-index-pattern-refuses-to-start/152026>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [October 11, 2018, 10:05am UTC](https://discuss.elastic.co/t/changing-index-pattern-refuses-to-start/152026 "2018-10-11T10:05:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mortenb123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mortenb123/32/37227_2.png) [@mortenb123](https://discuss.elastic.co/u/mortenb123)\
**Post date:** [October 11, 2018, 10:05am UTC](https://discuss.elastic.co/t/changing-index-pattern-refuses-to-start/152026/1 "2018-10-11T10:05:49Z")

</div>

Hi  
according to: [Configure the Elasticsearch output | Winlogbeat Reference [master] | Elastic](https://www.elastic.co/guide/en/beats/winlogbeat/master/elasticsearch-output.html)

But if I add

> index: "winlogbeat-%{[beat.version]}-%{+yyyy.MM.dd}"

winlogbeat do not start up

---

<div class="post-metadata">

**Author:** ![mortenb123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mortenb123/32/37227_2.png) [@mortenb123](https://discuss.elastic.co/u/mortenb123)\
**Post date:** [October 11, 2018, 10:18am UTC](https://discuss.elastic.co/t/changing-index-pattern-refuses-to-start/152026/2 "2018-10-11T10:18:02Z")

</div>

needed to add to winlogbeat.yml:

```
  setup.template.name: 'winlogbeat-%{[beat.version]}'
  setup.template.pattern: 'winlogbeat-%{[beat.version]}-*'

```

They seem very default to me.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [October 13, 2018, 12:18am UTC](https://discuss.elastic.co/t/changing-index-pattern-refuses-to-start/152026/3 "2018-10-13T00:18:40Z")

</div>

Anytime you change the `output.elasticsearch.index` you also need to configure the `setup.template.name` and `setup.template.pattern` to ensure they are all pointing at the right index.

[https://www.elastic.co/guide/en/beats/winlogbeat/master/elasticsearch-output.html#index-option-es](https://www.elastic.co/guide/en/beats/winlogbeat/master/elasticsearch-output.html#index-option-es)

---

<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 10, 2018, 12:18am UTC](https://discuss.elastic.co/t/changing-index-pattern-refuses-to-start/152026/4 "2018-11-10T00:18:40Z")

</div>

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