# Filebeat 6.2.2 - Index Template

**URL:** https://discuss.elastic.co/t/filebeat-6-2-2-index-template/132914
**Category:** Beats
**Tags:** filebeat
**Created:** [May 23, 2018, 2:31am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-index-template/132914 "2018-05-23T02:31:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![\_kyllr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_kyllr/32/27610_2.png) [@\_kyllr](https://discuss.elastic.co/u/_kyllr)
#### Post date: [May 23, 2018, 2:31am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-index-template/132914/1 "2018-05-23T02:31:00Z")

</div>

Hi -

Is it possible to create my own index template file as a replacement for the default template which is fields.yml?  
For example: "filebeat\_template.yml" and then load it from filebeat.yml like this:

setup.template.enabled: true  
setup.template.name: "filebeat\_template"  
setup.template.fields: "filebeat\_template.yml"  
setup.template.pattern: "filebeat\_template\*"

Any help? Thanks in advance.

---

<div class="post-metadata">

### Author: ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)
#### Post date: [May 23, 2018, 4:31am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-index-template/132914/2 "2018-05-23T04:31:40Z")

</div>

Hi @_kyllr,

Yes its possible to overwrite the template in filebeat.

Please refer below link for the same.

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

Regards,

---

<div class="post-metadata">

### Author: ![\_kyllr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_kyllr/32/27610_2.png) [@\_kyllr](https://discuss.elastic.co/u/_kyllr)
#### Post date: [May 23, 2018, 5:40am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-index-template/132914/3 "2018-05-23T05:40:15Z")

</div>

Thanks @harshbajaj16

And do you know how to set datatypes in that "filebeat\_template.yml" file the fields that I'll be using as:  
type: "text" and subtype: "keyword"

---

<div class="post-metadata">

### Author: ![\_kyllr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_kyllr/32/27610_2.png) [@\_kyllr](https://discuss.elastic.co/u/_kyllr)
#### Post date: [May 23, 2018, 7:39am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-index-template/132914/4 "2018-05-23T07:39:36Z")

</div>

Is this even possible?

```
- name: AuthenticationMethod
  type: text
  type: keyword
  description: >
    Contains user AuthenticationMethod
```

---

<div class="post-metadata">

### Author: ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)
#### Post date: [May 24, 2018, 9:33am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-index-template/132914/5 "2018-05-24T09:33:47Z")

</div>

Hi @_kyllr,

I'm not sure about this configuration. Please check below thread for the same.

> <https://github.com/elastic/beats/pull/1472>

It may be helpful and if you are still getting issue to set datatypes then please let me know.

Regards,

---

<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: [June 21, 2018, 9:45am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-index-template/132914/6 "2018-06-21T09:45:56Z")

</div>

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