Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Allow indexes to be added to data streams (not re-indexed, migrated, etc.) for Cold Storage support or data streams are useless on Amazon Managed OpenSearch #16996

Open
arianitu opened this issue Jan 10, 2025 · 1 comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing untriaged

Comments

@arianitu
Copy link

arianitu commented Jan 10, 2025

Is your feature request related to a problem? Please describe

When using Amazon UltraWarm and OpenSearch there is a feature where you can move indices to cold storage via an ISM policy. The issue is, when that index is moved to cold storage, it's removed from the data stream and there is no way to add it back.

This means data stream are essentially useless if you're using Managed Amazon OpenSearch since you cannot move a data stream to cold storage and back and keep all your dashboards and index patterns referencing the data stream working.

I thought I could use a hack, where I create an alias like so:

POST _aliases
{
  "actions": [
    {
      "add": {
        "index": ".ds-data-stream-name-*",
        "alias": "data-stream-all"
      }
    }
  ]
}

but this fails because you cannot have an alias that includes a data stream backing indexes.

So what are you left with... you need to refer to the data stream name data-stream-name and then also the backing indexes for everything .ds-data-stream-name-* for any dashboards, etc.

This is extremely frustrating because this means we basically cannot use data streams.

Describe the solution you'd like

Allow an index to be added to an existing data stream or allow the movement of them which I assume Amazon OpenSearch could utilize.

Related component

Indexing

Describe alternatives you've considered

Alternatives:

  1. When an index is moved from cold to warm, we could re-index it back into the data stream but then we lose the index dates and couldn't move it back to cold storage since it's mixed with fresh data
  2. Alias on data stream and backing index so the alias could match the indexes moved back but alias do not work either.
  3. Do not use data streams at all, instead use regular indexes (with aliases) and apply all ISM policies to this instead, seems super weird since data-streams solve this exact problem but we can't use it

Additional context

No response

@arianitu arianitu added enhancement Enhancement or improvement to existing feature or request untriaged labels Jan 10, 2025
@github-actions github-actions bot added the Indexing Indexing, Bulk Indexing and anything related to indexing label Jan 10, 2025
@arianitu arianitu changed the title [Feature Request] Allow indexes to be added to data streams (not re-indexed, migrated, etc.) for Cold Storage support or data streams are useless [Feature Request] Allow indexes to be added to data streams (not re-indexed, migrated, etc.) for Cold Storage support or data streams are useless on Amazon Managed OpenSearch Jan 10, 2025
@arianitu
Copy link
Author

#8271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing untriaged
Projects
None yet
Development

No branches or pull requests

1 participant