# How to make custom template out of default Filebeat template

**URL:** https://discuss.elastic.co/t/how-to-make-custom-template-out-of-default-filebeat-template/262075
**Category:** Beats
**Tags:** filebeat
**Created:** [January 25, 2021, 10:06am UTC](https://discuss.elastic.co/t/how-to-make-custom-template-out-of-default-filebeat-template/262075 "2021-01-25T10:06:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ORich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orich/32/21675_2.png) [@ORich](https://discuss.elastic.co/u/ORich)
#### Post date: [January 25, 2021, 10:06am UTC](https://discuss.elastic.co/t/how-to-make-custom-template-out-of-default-filebeat-template/262075/1 "2021-01-25T10:06:15Z")

</div>

Dear all,  
I setup a new template as follow to distinguish filebeat file names. The problem I have is that this new template has no mapping configured ... how can I make this new index template inherit from default filebeat mapping ? As you can notice in the screenshot, the M square in the content column is not blue = no mapping  
Thanks and Best Regards.

```auto
PUT /_template/filebeat-7.10.2-webcomws
{
  "index_patterns": ["filebeat-7.10.2-webcomws*"],                 
  "settings": {
    "number_of_shards": 3,
    "number_of_replicas": 1,
    "index.lifecycle.name": "datastream_policy_30d",      
    "index.lifecycle.rollover_alias": "filebeat-7.10.2-webcomws-alias"    
  }
}

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/f/af430c7ff52f51434006d3ee1f4c229ed9dda45c.png)

---

<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: [February 22, 2021, 12:06pm UTC](https://discuss.elastic.co/t/how-to-make-custom-template-out-of-default-filebeat-template/262075/2 "2021-02-22T12:06:24Z")

</div>

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