# Beat Index Created As "%{\[@metadata\]\[beat\]}-%{\[@metadata\]\[version\]}-2019.MM.DD"

**URL:** https://discuss.elastic.co/t/beat-index-created-as-metadata-beat-metadata-version-2019-mm-dd/173558
**Category:** Beats
**Created:** [March 22, 2019, 8:03pm UTC](https://discuss.elastic.co/t/beat-index-created-as-metadata-beat-metadata-version-2019-mm-dd/173558 "2019-03-22T20:03:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bcisse](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@bcisse](https://discuss.elastic.co/u/bcisse)
#### Post date: [March 22, 2019, 8:03pm UTC](https://discuss.elastic.co/t/beat-index-created-as-metadata-beat-metadata-version-2019-mm-dd/173558/1 "2019-03-22T20:03:52Z")

</div>

Hi all!

I'm having trouble setting up Filebeat to send its data to Elasticsearch via Logstash. ELK stack is properly setup and is running without issues. After configuration, I can see the indices being created in the format filebeat-6.6.2-2019.MM.DD as expected but another index is also automatically created as "%{[@metadata][beat]}-%{[@metadata][version]}-2019.MM.DD" and I can't seem to figure out why. I've tried enable debug in both LS and ES to try to determine what is causing it but haven't had any chance so far. This index gets automatically recreated for some reason even after being deleted several times. I've confirmed that the stack element as well as filebeat are all at the same version (6.6.2), running on Ubuntu 16.04. Here are my logstash and filebeat settings. Any insight will be greatly appreciated.

input {  
beats {  
port =\> 5044  
}  
}  
output {  
elasticsearch {  
hosts =\> "localhost:9200"  
manage\_template =\> false  
index =\> "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"  
}  
}

filebeat.inputs:

- type: log  
enabled: true  
paths:
  - /var/log/\*.log

filebeat.config.modules:  
path: ${path.config}/modules.d/\*.yml  
reload.enabled: true

setup.template.settings:  
index.number\_of\_shards: 1  
index.codec: best\_compression

setup.dashboards.enabled: true

setup.kibana:  
host: "xx.xx.xx.xx:5601"

output.logstash:  
hosts: ["xx.xx.xx.xx:5044"]

processors:

- add\_host\_metadata: ~
- add\_cloud\_metadata: ~

-Bob

---

<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: [April 19, 2019, 10:03pm UTC](https://discuss.elastic.co/t/beat-index-created-as-metadata-beat-metadata-version-2019-mm-dd/173558/2 "2019-04-19T22:03:52Z")

</div>

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