Proper Way to Create a Zero Replica Priority Template

Howdy! I run Elastic in my homelab to pull logs together, etc., and I've recently rebuild from the ground up with Elastic 8. Previously I would create a global template like this:

PUT _template/zeroreplicas
  "order": 1,
  "index_patterns": ["*"],
  "settings": {
    "index": {
      "number_of_replicas": "0"
    "mappings": {},
    "aliases": {}

When I do this with v8, however, Kibana tells me: Legacy index templates are deprecated in favor of composable index templates.

My question is, how do I create this type of template using the new composable index template?


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