# Proper Way to Create a Zero Replica Priority Template

**URL:** https://discuss.elastic.co/t/proper-way-to-create-a-zero-replica-priority-template/297729
**Category:** Elasticsearch
**Created:** [February 21, 2022, 8:44am UTC](https://discuss.elastic.co/t/proper-way-to-create-a-zero-replica-priority-template/297729 "2022-02-21T08:44:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JSylvia007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsylvia007/32/81528_2.png) [@JSylvia007](https://discuss.elastic.co/u/JSylvia007)
#### Post date: [February 21, 2022, 8:44am UTC](https://discuss.elastic.co/t/proper-way-to-create-a-zero-replica-priority-template/297729/1 "2022-02-21T08:44:09Z")

</div>

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:

```auto
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?

Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 21, 2022, 8:44am UTC](https://discuss.elastic.co/t/proper-way-to-create-a-zero-replica-priority-template/297729/2 "2022-03-21T08:44:57Z")

</div>

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