# Filebeat on Windows not indexing into name on yml

**URL:** https://discuss.elastic.co/t/filebeat-on-windows-not-indexing-into-name-on-yml/225886
**Category:** Beats
**Tags:** filebeat
**Created:** [March 31, 2020, 2:20pm UTC](https://discuss.elastic.co/t/filebeat-on-windows-not-indexing-into-name-on-yml/225886 "2020-03-31T14:20:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![math1324](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@math1324](https://discuss.elastic.co/u/math1324)
#### Post date: [March 31, 2020, 2:20pm UTC](https://discuss.elastic.co/t/filebeat-on-windows-not-indexing-into-name-on-yml/225886/1 "2020-03-31T14:20:30Z")

</div>

New to Beats, trying to figure out why Filebeat is sending data to ES in the default file index name filebeat--, when my yml configuration states that I want it to go into logs\_server1:  
filebeat.inputs:

```auto
- type: log
  enabled: true
  paths:
    - c:\\Users\\ ... logs_server1\\*.log

processors:
  - decode_json_fields:
      fields: ["message"]
      target: ""

  - drop_fields:
      fields: ["message"]

setup.template.enabled: false

output.elasticsearch:
  hosts: ["localhost:9200"]
  index: "logs_server1"
  bulk_max_size: 25

logging.level: debug
logging.selectors: ["*"]

```

On the command line, I have tried  
`.\filebeat.exe setup --index-management -E setup.ilm.overwrite=true -c ..\data\filebeat3.yml`

and

`.\filebeat.exe setup --index-management -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]' -c ..\data\filebeat3.yml`

Thanks for any help.

---

<div class="post-metadata">

### Author: ![MarianaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marianad/32/42687_2.png) [@MarianaD](https://discuss.elastic.co/u/MarianaD)
#### Post date: [April 22, 2020, 2:11pm UTC](https://discuss.elastic.co/t/filebeat-on-windows-not-indexing-into-name-on-yml/225886/2 "2020-04-22T14:11:01Z")

</div>

hi @math1324,

If you change `index` setting inside `output.elasticsearch`, you also need to configure the `setup.template.name` and `setup.template.pattern` options (see [_Elasticsearch index template_](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-template.html)).

If you are using the pre-built Kibana dashboards, you also need to set the `setup.dashboards.index` option (see [_Kibana dashboards_](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-dashboards.html)).

Let us know if that worked in your case.

---

<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: [May 20, 2020, 2:11pm UTC](https://discuss.elastic.co/t/filebeat-on-windows-not-indexing-into-name-on-yml/225886/3 "2020-05-20T14:11:09Z")

</div>

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