# Filebeat v6 and elasticsearch v6

**URL:** <https://discuss.elastic.co/t/filebeat-v6-and-elasticsearch-v6/107925>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 16, 2017, 11:52am UTC](https://discuss.elastic.co/t/filebeat-v6-and-elasticsearch-v6/107925 "2017-11-16T11:52:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![nsteinmetz](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@nsteinmetz](https://discuss.elastic.co/u/nsteinmetz)\
**Post date:** [November 29, 2017, 2:38pm UTC](https://discuss.elastic.co/t/filebeat-v6-and-elasticsearch-v6/107925/6 "2017-11-29T14:38:46Z")

</div>

Hi,

Just had the same issue, you need to update the template for filebeat & es6.

You have the new mapping file in `/etc/filebeat/filebeat.template-es6.json`

I deleted the previous one and load the new one but there may be a better option if you need to keep your data.

```auto
curl -XDELETE http://localhost:9200/_template/filebeat
curl -XPUT -H 'Content-Type: application/json' http://localhost:9200/_template/filebeat -d@filebeat.template-es6x.json

```

See [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-template.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-template.html)

Maybe there is a smarter way with some alias ?

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-v6-and-elasticsearch-v6/107925)._
