-
Notifications
You must be signed in to change notification settings - Fork 129
Description
What is the bug?
When defining an index_pattern within an ISM policy, the "normal" index-pattern syntax is not allowed. The error
[index_management_exception] Validation failed: 1: index_pattern ]c0666_log-*,-*_remote] must not contain the following characters....
It is valid in opensearch to further adjust an index-pattern, like
GET _cat/indices/c0666_log-*,-*_remote,c0666_log-000077_remote
This shows all indices matching c0666_log-*
, but removing anything from that list that matches -*_remote
but then exceptionally re-adding the index c0666_log-000077_remote
.
This pattern also works when creating index-patterns to be used in Discovery
How can one reproduce the bug?
Steps to reproduce the behavior:
- Go to 'State management policies'
- Create a new policy
- Try to define a pattern like
c0666_log-*,-*_remote
- See error
What is the expected behavior?
That the same syntax for an index_pattern
is allowed as well.
What is your host/environment?
- OS: Linux
- Opensearch version: 3.2.0
- Dashboards version: 3.2.0
Do you have any screenshots?

Do you have any additional context?
This is related to issue #1426. The proposed workaround (see #1426 (comment)) with an additional higher priority policy would not be needed in this case.
There is also #1427 which would use remote
as a prefix instead of a suffix, which I would also appreciate.