-
Notifications
You must be signed in to change notification settings - Fork 634
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
AWS - Elasticsearch support - /_cluster/state/metadata/ HTTP 401 #717
Comments
If you read this comment in #685, you'll see that it's not a regression. Curator 4 depends on the When I wrote Curator 4, which is a major change over Curator 3:
AWS ES now supports a newer version of Elasticsearch, but it still doesn't support the Why does Curator 4 depend on the As mentioned in that linked comment, the best case scenario for you would be to use Curator 3 still, as it supports versions of ES up through 2.x. I also suggest asking AWS ES to change the policy of disallowing the |
Thanks @untergeek I've referenced this ticket in my support case with aws. So hopefully will be listening :) |
I'm having the same problem. Made a post on the AWS forums related with this https://forums.aws.amazon.com/thread.jspa?threadID=236643&tstart=0 I think there is no point in support the AWS Credentials in Curator 4 if there is no way this tool can work with AWS ES. |
@untergeek I am from AWS ES and we want to ideally be able to support curator which is a super useful plugin. While exposing all the information in cluster/state will be harder for us, I would like to explore the path of opening this API and exposing enough information for curator to work. While I know the best answer is to look up code, could you please share some relevant pointers on the portions of _cluster/state response which get used here? |
@basex Not necessarily. This may be useful for people who want to run Curator remotely against self-hosted ES clusters residing in AWS |
See https://github.com/elastic/curator/blob/v4.0.0/curator/indexlist.py#L146-L149
and https://github.com/elastic/curator/blob/v4.0.0/curator/utils.py#L400
The biggest part is really the index metadata in https://github.com/elastic/curator/blob/v4.0.0/curator/indexlist.py#L137-L166, where you see that Curator currently uses (this may expand at any time):
Most of these are under cluster.state['metadata']['indices'][INDEXNAME]['settings']['index'], though the index state (open/closed) is at cluster.state['metadata']['indices'][INDEXNAME]['state'] |
obviously, a reminder, Elastic official cloud offering, https://www.elastic.co/cloud, doesn't suffer from this limitation of AWS and curator works out of the box with it. This is being helped with the fact that both the devs behind ES and @untergeek work for Elastic and can make sure this happens. Obviously any fork of curator is not officially supported by Elastic. |
@untergeek have check out |
@chetandhembre I can't find that API call in the elasticsearch-py.readthedocs.io documentation. I'm not looking to hack the call directly. |
@untergeek |
Testing AWS ES, already found this issue related with td-agent or logstash: https://forums.aws.amazon.com/thread.jspa?messageID=694137#694137 Non related but... Is this issue solved? since it's closed, it's not clear to me. |
It's currently not solvable due to AWS ES not supporting the required API call. |
Thanks @untergeek for the quick reply. Does curator 3 work with AWS ES. |
Yes. It lacks some of the newer features in 4, but it should work with AWS ES. |
I'm certain that tens of people have attempted to use curator 4 with AWS only to end up on this issue. I know it's quite squarely AWS who needs to implement use of _cluster/state, but in the meantime any chance you can add a banner warning to curator 4 mentioning it's not compatible? It'd save users a good bit of hassle. |
@RyanBowlby-Reflektion I'm sorry you had a bad experience. I keep putting notices everywhere I can think of. This isn't a huge banner, but it's in the README:
In the official documentation, I added the following warning to each of the AWS configuration flags here, here, and here.
Which links to this FAQ response. I also removed the AWS IAM flags from the configuration file example. Note the difference in the older 4.0 documentation here. I'm not sure where else I can put notices to make it more plain. |
Too small notice for me to not waste 2h just to end up at this dead end. How about making it clear in the version matrix in the README? |
@algesten it looks like your request to make it clear in the README is resolved. At this time (about 7 days ago, by the commit logs), I see this in the readme table: |
In case anyone lands on this issue wondering about Curator support for the new version 5 of the AWS Elasticsearch Service, take a look at this issue: #880 |
Hi, @untergeek, I'm trying to use curator 3.5.1 with AWS ES 2.3, but I can't find in the docs how to pass aws_key or aws_secret to curator 3.5. Can you give me any pointer on how to do this? Thanks! |
@oji It was never officially supported. |
Currently AWS Elasticsearch 2.3 doesn't support the following
A ticket has been opened internally for AWS, however curious if this can be resolved here alternatively? Or at least raise awareness of the issue.
The text was updated successfully, but these errors were encountered: