here is my setting.
PUT /_template/default_template
{
"template": "logstash-",
"settings": {
"index.number_of_replicas": "1",
"index.number_of_shards": "5"
},
"mappings": {
"default": {
"dynamic_templates": [
{
"string_match": {
"mapping": {
"index": "not_analyzed",
"doc_values": true,
"type": "string"
},
"match": "",
"match_mapping_type": "string"
}
},
{
"other": {
"mapping": {
"doc_values": true
},
"match": "",
"match_mapping_type": ""
}
}
],
"_all": {
"enabled": false
}
}
},
"aliases": {}
}