# How to add settings in filebeat default template?

**URL:** https://discuss.elastic.co/t/how-to-add-settings-in-filebeat-default-template/207040
**Category:** Beats
**Tags:** filebeat
**Created:** [November 8, 2019, 4:24am UTC](https://discuss.elastic.co/t/how-to-add-settings-in-filebeat-default-template/207040 "2019-11-08T04:24:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pk.241011](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pk.241011/32/86285_2.png) [@pk.241011](https://discuss.elastic.co/u/pk.241011)
#### Post date: [November 8, 2019, 4:24am UTC](https://discuss.elastic.co/t/how-to-add-settings-in-filebeat-default-template/207040/1 "2019-11-08T04:24:08Z")

</div>

I am very happy with the default mapping which filebeat provides for the index it creates.

The only thing I want to do is to add these two to the mappings:

```
  numeric_detection: true
  date_detection: true

```

I tried with this in my yml with no success

```
setup.template.settings:
  numeric_detection: true
  date_detection: true

```

There has to be a way to specify these two settings in the mappings created by filebeat.

The unsustainable hack as of now is to extract the template for the index and then add the settings and then push it back. It works but there has to be an easier way which I do not know.

---

<div class="post-metadata">

### Author: ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)
#### Post date: [November 15, 2019, 9:15am UTC](https://discuss.elastic.co/t/how-to-add-settings-in-filebeat-default-template/207040/2 "2019-11-15T09:15:08Z")

</div>

Hi @pk.241011,

I think you are missing something in the conf. Could you try this?

```auto
setup.template.settings:
  index.numeric_detection: true
  index.date_detection: true

```

---

<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: [December 13, 2019, 9:15am UTC](https://discuss.elastic.co/t/how-to-add-settings-in-filebeat-default-template/207040/3 "2019-12-13T09:15:20Z")

</div>

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