8000 Create a pre-filter for getting indices, or a wildcard match. · Issue #1505 · elastic/curator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Create a pre-filter for getting indices, or a wildcard match. #1505

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

Open
fbacchella opened this issue Jan 24, 2020 &mi 8000 ddot; 1 comment
Open

Create a pre-filter for getting indices, or a wildcard match. #1505

fbacchella opened this issue Jan 24, 2020 · 1 comment

Comments

@fbacchella
Copy link

Tested on Curator 5.8.

Curator wants to recover all indices, once for every action, for example, on a scripts with 3 actions, on debug level, it returns:

curator ... | grep 'Getting all indices'
2020-01-24 11:15:27,158 DEBUG          curator.indexlist          __get_indices:65   Getting all indices
2020-01-24 11:15:27,793 DEBUG          curator.indexlist          __get_indices:65   Getting all indices
2020-01-24 11:15:28,209 DEBUG          curator.indexlist          __get_indices:65   Getting all indices

And the query is indeed:

2020-01-24 11:16:49,083 DEBUG     urllib3.connectionpool          _make_request:393  https://XXX:9200 "GET /_all/_settings?expand_wildcards=open%2Cclosed HTTP/1.1" 200 38614

It's hardcoded, see
https://github.com/elastic/curator/blob/master/curator/indexlist.py#L66
https://github.com/elastic/curator/blob/master/curator/utils.py#L660 and
On a big cluster, that's a lot of useless data. A way to restrict actions to a simple index list should be provided, before filtering. And does all settings are really required ?

@untergeek
Copy link
Member

This has been planned as a feature for the next major release of Curator for some time. I just don't have time to develop it as often as I would like.

@untergeek untergeek changed the title Curator always get all indices Create a pre-filter for getting indices, or a wildcard match. Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0