How can I assign number of Replica shards at the time of Dynamic Index creation?

Hi All,

I am trying to index logs using logstash to a dynamic index with the format "index=>sample-%{YYYY.MM}". How can I assign number of Replica shards at the time of Dynamic Index creation?

You can set it through an index template.

Hi Christian,

Thanks for the quick reply..

So, I think I will have to add number_of_replicas field to the settings block. And I don't understand what mappings, properties and created at block do? Can you please explain it?