Skip to content

Preview for match-all template gives error response #189555

Closed

Description

I went to Stack Management -> Index Management, clicked on Index Templates, and Create Template. I gave the template the name match-all-test, the index index pattern *, priority 1000. I clicked Next, and then clicked Review Template. When I clicked Create Template, the template was created fine, and I was able to use it. But when I clicked on the Preview tab of the pop-up window I got when the template was created, I saw this:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "index template [simulate_template_qdey_a06qjm8tepvpcfxfq] has index patterns [a_fake_index_pattern_that_wont_match_any_indices] matching patterns from existing templates [all-data-streams] with patterns (all-data-streams => [*]) that have the same priority [5], multiple index templates may not match during index creation, please use a different priority",
  "attributes": {
    "error": {
      "root_cause": [
        {
          "type": "illegal_argument_exception",
          "reason": "index template [simulate_template_qdey_a06qjm8tepvpcfxfq] has index patterns [a_fake_index_pattern_that_wont_match_any_indices] matching patterns from existing templates [all-data-streams] with patterns (all-data-streams => [*]) that have the same priority [5], multiple index templates may not match during index creation, please use a different priority"
        }
      ],
      "type": "illegal_argument_exception",
      "reason": "index template [simulate_template_qdey_a06qjm8tepvpcfxfq] has index patterns [a_fake_index_pattern_that_wont_match_any_indices] matching patterns from existing templates [all-data-streams] with patterns (all-data-streams => [*]) that have the same priority [5], multiple index templates may not match during index creation, please use a different priority"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Feature:Index ManagementIndex and index templates UITeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and morebugFixes for quality problems that affect the customer experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions