Hi guys,
I am trying to create a new index template but for some reason elasticsearch is assuming that there is already one index template with the index pattern requested...
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "index template [my-test-app-env-eaisg] has index patterns [my-testv3-app-*-eaisg-*, my-testv4-app-*-eaisg-*] matching patterns from existing templates [my-test-app-env-eaisap] with patterns (my-test-app-env-eaisap => [my-testv3-app-*-eaisap-*, my-testv4-app-*-eaisap-*]) that have the same priority [0], multiple index templates may not match during index creation, please use a different priority"
}
],
"type" : "illegal_argument_exception",
"reason" : "index template [my-test-app-env-eaisg] has index patterns [my-testv3-app-*-eaisg-*, my-testv4-app-*-eaisg-*] matching patterns from existing templates [my-test-app-env-eaisap] with patterns (my-test-app-env-eaisap => [my-testv3-app-*-eaisap-*, my-testv4-app-*-eaisap-*]) that have the same priority [0], multiple index templates may not match during index creation, please use a different priority"
},
"status" : 400
}
As you can see above, both index templates have different index patterns, so im a bit confused on why it doesnt allow me to create this index template.
Do you have any ideia why is this happening?
Thanks