# Multiple attributes for allocation filter

**URL:** <https://discuss.elastic.co/t/multiple-attributes-for-allocation-filter/182322>\
**Category:** Elasticsearch\
**Created:** [May 22, 2019, 8:31pm UTC](https://discuss.elastic.co/t/multiple-attributes-for-allocation-filter/182322 "2019-05-22T20:31:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielmotaleite](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmotaleite/32/19796_2.png) [@danielmotaleite](https://discuss.elastic.co/u/danielmotaleite)\
**Post date:** [May 22, 2019, 8:31pm UTC](https://discuss.elastic.co/t/multiple-attributes-for-allocation-filter/182322/1 "2019-05-22T20:31:47Z")

</div>

how to use multiple atributes in elasticsearch, so we can use for shard allocation.

I tried

`node.attr.role: [events, archive]`  
and  
`node.attr.role: events,archive`

but both fail with:

`"explanation": "node does not match index setting [index.routing.allocation.include] filters [role:\"primary OR archive OR events\"]"`

---

<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:** [June 19, 2019, 8:31pm UTC](https://discuss.elastic.co/t/multiple-attributes-for-allocation-filter/182322/2 "2019-06-19T20:31:51Z")

</div>

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