index-management icon indicating copy to clipboard operation
index-management copied to clipboard

[FEATURE REQUEST] ISM template index pattern support excluding operator -

Open pytomtoto opened this issue 2 years ago • 5 comments

Describe the bug I have a index pattern *,-code* to include all index and exclude "code*"

when I use this index pattern to ILM . I Found it's not work.

    "ism_template": [
        {
            "index_patterns": [
                "*",
                "-code*"
            ],
            "priority": 100,
            "last_updated_time": 1623292398930
        }
    ]

ILM Policy always include all index。

To Reproduce Steps to reproduce the behavior: like this create * and -somestring

Expected behavior I want the policy pass some index

Plugins Please list all plugins currently enabled.

Screenshots image

Host/Environment (please complete the following information):

  • OS: aws OpenSearch | 1.0

  • Version 1.0

Additional context

pytomtoto avatar May 31 '22 02:05 pytomtoto

Maybe i just set priority to change the index's Policy

pytomtoto avatar May 31 '22 02:05 pytomtoto

Hi @pytomtoto ,

Probably this is a feature request for Index Management plugin. In their user guide (https://opensearch.org/docs/latest/im-plugin/ism/policies/), it's not mentioned that "index_patterns" supports excluding targets with the syntax -. I will ask the team to transfer the issue to index-managment repository to let the developers there give a better answer.

tlfeng avatar May 31 '22 06:05 tlfeng

ISM doesn't support - pattern to exclude sth. This can be a feature request.

bowenlan-amzn avatar Jul 09 '22 00:07 bowenlan-amzn

Should be a very useful feature

ysosnovskyi avatar Jan 16 '23 14:01 ysosnovskyi

Can I be assigned this feature request? Thank you!

arnav-mehra avatar Oct 18 '23 00:10 arnav-mehra