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
Cat endpoint for data streams #65238
Comments
Pinging @elastic/es-core-features (Team:Core/Features) |
I'd suggest including a count of backing indices. And maybe excluding the generation as it's of marginal value. |
+1, but doesn't the generation tell you the number of backing indices? |
No, the generation has turned out to be just a counter for the number of times the rollover API has been called on the data stream. That will diverge from the number of backing indices as older backing indices are deleted or if the data stream migration API is used to create a new data stream from an alias pointing to more than one index. |
Ahhhh yes, of course. Thanks! |
I would be very useful to include the current write index for the data stream. That is not easy to determine in the current API output. |
Just an update for posterity -- the generation is no longer even a counter for the number of rollover operations since there are now other operations that increment the generation. It's an implementation that shouldn't be relied upon for anything other than a monotonically increasing value attached to the names generated for backing indices. |
That's something that would make sense to add to the |
Along similar lines as
_cat/aliases
and_cat/indices
, we should have a_cat/data_streams
.Perhaps something like:
Also, there's already
_cat/templates
, but there's no_cat
API for ILM Policies (#29690 has a checkbox for it). It probably makes sense to add that, too, perhaps as a followup./cc @dakrone @martijnvg
The text was updated successfully, but these errors were encountered: