# Default index routing allocation

**URL:** <https://discuss.elastic.co/t/default-index-routing-allocation/249621>\
**Category:** Elasticsearch\
**Created:** [September 23, 2020, 8:31am UTC](https://discuss.elastic.co/t/default-index-routing-allocation/249621 "2020-09-23T08:31:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathmarc](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Mathmarc](https://discuss.elastic.co/u/Mathmarc)\
**Post date:** [September 23, 2020, 8:31am UTC](https://discuss.elastic.co/t/default-index-routing-allocation/249621/1 "2020-09-23T08:31:24Z")

</div>

Does there is a way to force all new index, to be route to some specific nodes ?  
Lets say I have 8 nodes with:

- 6 nodes with "node.attr.group": "data"
- 2 nodes without group

For now every times a new index, is created (automatically like `.slm-history-2-000001`, `ilm-history-2-000001` or other kibana or metricbeats)

I need to change the allocation group manually like `"routing.allocation.exclude.group": "data"`.

Does there is a way to block an index to be assigned to the `data group` by default ?

---

<div class="post-metadata">

**Author:** ![kavierkoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavierkoo/32/86555_2.png) [@kavierkoo](https://discuss.elastic.co/u/kavierkoo)\
**Post date:** [September 23, 2020, 8:53am UTC](https://discuss.elastic.co/t/default-index-routing-allocation/249621/2 "2020-09-23T08:53:05Z")

</div>

You can take a look at using index template to achieve that.

> **[Put index template API | Elasticsearch Reference \[7.9\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)**

Hope this can help you.

---

<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:** [October 21, 2020, 8:53am UTC](https://discuss.elastic.co/t/default-index-routing-allocation/249621/3 "2020-10-21T08:53:11Z")

</div>

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