Dynamic index routing allocation based on index name / regex

Hello,

I was wondering if its possible to define index.routing.allocation attributes for an index pattern instead of an specific index or the cluster wide option.

Lets say I have and will always have k1, k2 as a prefix in the index name for all my existing and possible new indices. Can I do something like:

if index_name /k1-/ apply: "index.routing.allocation.include.myattribute": "big"
if index_name /k2-
/ apply: "index.routing.allocation.include.myattribute": "small"

Thanks a lot
Manuel

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