Hello,
I would like to update the number of replicas for newly creating indices to be 5 automatically, so i used the below curl
curl -XPUT -k -u elastic:password 'https://192.168.x.x:9200/_index_template/my_template' -H 'Content-Type: application/json' -d '{
"index_patterns": ["*"],
"template": {
"settings": {
"number_of_replicas": 5
}
}
}'
it is working fine when running it on a cluster working over HTTP but when running to a cluster working over HTTPS i keep getting the below error
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "index template [my_template] has index patterns [*] matching patterns from existing templates [.monitoring-beats-mb,.monitoring-ent-search-mb,.monitoring-es-mb,.monitoring-kibana-mb,.monitoring-logstash-mb] with patterns (.monitoring-beats-mb => [.monitoring-beats-8-*],.monitoring-ent-search-mb => [.monitoring-ent-search-8-*],.monitoring-es-mb => [.monitoring-es-8-*],.monitoring-kibana-mb => [.monitoring-kibana-8-*],.monitoring-logstash-mb => [.monitoring-logstash-8-*]) that have the same priority [0], multiple index templates may not match during index creation, please use a different priority"
}
],
},
"status": 400
}
so if there any help?