Error multiple index templates may not match during index creation

Hi,

I got the following error message in kibana.log

{"type":"log","@timestamp":"2022-03-14T21:31:34+01:00","tags":["error","plugins","security","session","index"],"pid":14270,"message":"Failed to create session index template: illegal_argument_exception: [illegal_argument_exception] Reason: index template [.kibana_security_session_index_template_1] has index patterns [.kibana_security_session_1] matching patterns from existing templates [defaults] with patterns (defaults => [*]) that have the same priority [0], multiple index templates may not match during index creation, please use a different priority"}

Only executed after install Kibana this:

cat > template.json << EOF
{
  "index_patterns": ["*"],
  "template": {
    "settings": {
      "index": {
        "number_of_shards": 1,
        "number_of_replicas": 0
      }
    }
  }
}
EOF

curl -u "elastic:password" -XPUT -H'Content-type: application/json' http://localhost:9200/_index_template/defaults -d @template.json

What exaclty mean? How can I remove this?

Set priority parameters different from other templates

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.