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

Add Api definitions for create, get, and delete data_stream #129

Closed
nhtruong opened this issue Jul 10, 2023 · 5 comments
Closed

Add Api definitions for create, get, and delete data_stream #129

nhtruong opened this issue Jul 10, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@nhtruong
Copy link
Collaborator

nhtruong commented Jul 10, 2023

This is part of the index_management plugin that have now been added to OS as core features in the indices namespace, so the operation groups of these actions would be
indices.create_data_stream
indices.get_data_stream
indices.delete_data_stream

https://opensearch.org/docs/latest/im-plugin/data-streams/

@Tokesh
Copy link
Collaborator

Tokesh commented Jul 13, 2023

I'd like to work on this issue :)
I'm already read this article about data streams. I think i have only one question about create_data_stream API.
In article they gave us such examples:
PUT _data_stream/logs-redis
PUT _data_stream/logs-nginx
Are "logs-redis" and "logs-nginx" just indexes, not index_templates?

@nhtruong
Copy link
Collaborator Author

A data stream is internally composed of multiple backing indexes. Search requests are routed to all the backing indexes, while indexing requests are routed to the latest write index.

So it makes sense that you need an index_template (it's like grepping for indices with similar names) to create a data-stream, since a data-stream is a collection of indices.

@nhtruong
Copy link
Collaborator Author

@Tokesh Looks like even though these endpoints were part of the legacy index_management plug-in. They have been added to OS as core features of the indices namespace. I've update the Issue's description to reflect that.

@Tokesh
Copy link
Collaborator

Tokesh commented Jul 14, 2023

So it makes sense that you need an index_template (it's like grepping for indices with similar names) to create a data-stream, since a data-stream is a collection of indices.

@Tokesh Looks like even though these endpoints were part of the legacy index_management plug-in. They have been added to OS as core features of the indices namespace. I've update the Issue's description to reflect that.

Thank you so much for answers. I got it!

@Xtansia
Copy link
Collaborator

Xtansia commented Dec 4, 2023

Closing as #131 was merged

@Xtansia Xtansia closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants