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

Shouldn't use _cat/indices for index autocompletion #50

Open
Alex-At-Home opened this issue Apr 22, 2019 · 0 comments
Open

Shouldn't use _cat/indices for index autocompletion #50

Alex-At-Home opened this issue Apr 22, 2019 · 0 comments
Labels
0.4.0-alpha bug Something isn't working enhancement New feature or request

Comments

@Alex-At-Home
Copy link
Owner

Because it requires cluster:monitor/state which is overreach for viewing a list of indices

Should find out how else you can get a list of indices, so far the best I can do is:

curl -H 'content-type: application/json' 'https://CLUSTERID-east-1.aws.found.io:9243/_search' -vvv -d '
{
  "aggregations": {
    "index_list": { "terms": {
        "field": "_index"
    } }
  },"size":0
}'

not sure how efficient that is ... maybe only try if I get a 401/403 from the _cat/indices request?

@Alex-At-Home Alex-At-Home added bug Something isn't working 0.4.0-alpha labels Apr 22, 2019
@Alex-At-Home Alex-At-Home changed the title Shouldn't use _cat/indices Shouldn't use _cat/indices for index autocompletion Apr 22, 2019
@Alex-At-Home Alex-At-Home added the enhancement New feature or request label Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.4.0-alpha bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant