I'm not sure, but have a hunch; you've wrapped the integer values for the number of shards inside quotes which is usually reserved for text, not numbers, so my theory is that the shard setting failed to take effect.
Could you try to install a new template without the quotes around the shard numbers, e.g. with an index setting like this
Could you try to fetch the template from the cluster, to see how it got parsed and stored? That is, can you run something like this:
curl -X GET "http://localhost:9200/_template/test_log?pretty" -s
And verify that the template really has the correct values for number_of_shards and number_of_replicas?
If that is OK, then there must something overriding the template. Perhaps you have another template of higher order (1, 2 etc) with a matching index_patterns?
You can list all active templates by using an asterisk:
curl -X GET "http://localhost:9200/_template/*?pretty" -s
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.