How to add settings in filebeat default template?

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.

Hi @pk.241011,

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

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

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