How to create a mapping that apply to index with dynamic name like "index-%{YYYYMMDD}"


I'm using logstash to create new indices every day using the current date, but every time it does, the new index create new fields considering everything as "string".
How can I configure my mapping, so when a new index is created it configure the fields with the right data type?

(Christian Dahlqvist) #2

Create an index template that applies to all indices matching e.g. the index* pattern.