I'm sorry, I should have tested the example before I posted it. I see now that it fails with parser error and there are two things that fail: Index template names can't contain dashes ("-") and I forgot a comma after the order field.
This should work better:
PUT _template/logstash_index_template
{
"index_patterns" : ["sample_index*"],
"order" : 1,
"settings" : {
"index.refresh_interval" : "10s",
"number_of_shards" : "1",
"number_of_replicas" : "0"
}
}
No, I can overwrite the old index template with a new one, as long as I provide the same valid name ![]()