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
Problem with index name handling #2058
Comments
I'd be fine with hard coding the archive plugin name format for now and properly fixing this in 2.1. Personally I consider the index naming non-public API and I'm hesitant to open that up to plugins without a good plan. Especially once we want to allow multiple indices, possibly per stream or other criteria, this will quickly become messy. How about allowing a suffix of |
I'd also prefer that as a quick solution while thinking about a proper solution (maybe also incorporating solutions which do not use Elasticsearch) in a later version. |
- Make sure to only return Graylog indices in the indices and indices overview resources. - Until we find a better solution, hard code the index suffix for restored archive indices to make it possible to search in restored indices and close/delete them. Fixes #2058
Thanks for the feedback! I created a PR: #2062 |
- Make sure to only return Graylog indices in the indices and indices overview resources. - Until we find a better solution, hard code the index suffix for restored archive indices to make it possible to search in restored indices and close/delete them. Fixes #2058
Make sure to only return Graylog indices in the indices and indices overview resources. Until we find a better solution, hard code the index suffix for restored archive indices to make it possible to search in restored indices and close/delete them. Fixes #2058
Problem description
In 1728772 we introduced a stricter pattern to check if an index is handled by Graylog to avoid touching anything else.
I see two problems with that:
Trying to open the details for the
graylog_17_restored_archive
does not work.The details do not show up, the spinner keeps spinning.
In the developer tools I see a failed request for the archive because the name does not match the strict pattern.
Steps to reproduce the problem
*_restored_archive
Solution Discussion
To avoid showing the non-
^graylog_[0-9]+$
indices on the "System/Indices" page, we could just make sure to apply the strict pattern for the index list as well.The problem is that the archive plugin cannot be used for restores at the moment because of the strict pattern handling. An archived index can be restored but then there will be no index range for it and we also cannot delete it.
One idea would be to make the index name patterns pluggable to allow plugins to inject a new name format.
Any other or better ideas?
Environment
The text was updated successfully, but these errors were encountered: