# Index.routing.allocation.\* setted in a static way

**URL:** <https://discuss.elastic.co/t/index-routing-allocation-setted-in-a-static-way/108605>\
**Category:** Elasticsearch\
**Created:** [November 21, 2017, 6:28pm UTC](https://discuss.elastic.co/t/index-routing-allocation-setted-in-a-static-way/108605 "2017-11-21T18:28:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [November 21, 2017, 6:28pm UTC](https://discuss.elastic.co/t/index-routing-allocation-setted-in-a-static-way/108605/1 "2017-11-21T18:28:23Z")

</div>

Hi all,  
currently I have a cluster with 3 nodes (with every roles setted: Master + DATA).  
My Elastic is filled by two different indices, `football_datestamp` and `basketball_datestamp`, where datestamp is YYYY.mm.dd.  
I would like to have `football` index only on node3 so I have configured into elasticsearch.yml of node3 the key value`"index.routing.allocation.include.tag" : "footballTeam"`.  
How can I specify the dynamic index name into the classic CURL command to redistribute shards on node3?  
I mean, something like:

```
PUT football*/_settings
{
  "index.routing.allocation.include.tag": "footballTeam"
}

```

Will does it work?

At the beginning, when my Filebeats clients send messages of `football` index, messages will be distributed on all the nodes, isn't it? is there a way to make the CURL command static when elasticsearch startup? I don't really like the idea to execute a command everytime.

ps: is there a page where I can find all the possible attributes of shards allocation? taking a look to ELK documentation I didn't find a complete list.  
thanks in advance

---

<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:** [December 19, 2017, 6:28pm UTC](https://discuss.elastic.co/t/index-routing-allocation-setted-in-a-static-way/108605/2 "2017-12-19T18:28:33Z")

</div>

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