Skip to content

[BUG] "Normal" index pattern syntax not allowed within "index_patterns" in ISM policies #1478

@rpasche

Description

@rpasche

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:

  1. Go to 'State management policies'
  2. Create a new policy
  3. Try to define a pattern like c0666_log-*,-*_remote
  4. 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?

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions