opensearch-project / index-management

🗃 Automate periodic data operations, such as deleting indices at a certain age or performing a rollover at a certain size
https://opensearch.org/docs/latest/im-plugin/index/
Apache License 2.0
53 stars 112 forks source link

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

Open pytomtoto opened 2 years ago

pytomtoto commented 2 years ago

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):

Additional context

pytomtoto commented 2 years ago

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

tlfeng commented 2 years ago

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.

bowenlan-amzn commented 2 years ago

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

ysosnovskyi commented 1 year ago

Should be a very useful feature

arnav-mehra commented 1 year ago

Can I be assigned this feature request? Thank you!