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

Can I use elasticdump backup if es has an account password on x-pack #526

Closed
18601762542 opened this issue Mar 23, 2019 · 5 comments
Closed

Comments

@18601762542
Copy link

Can I use elasticdump backup if es has an account password on x-pack

@recepkabatas
Copy link

Hello I have the same issue i want to use elasticdump with https
i'm using open distro for Elasticsearch it's new plugin for Elasticsearch developed by Amazon
it's like searchguard.
elasticdump --limit=10000 --input=Desktop/file.json --output=https://localhost:9200 --type=date
but there is no response on terminal line it's just blank...

if there is any parametters for authentication info that i can give into elasticdump scirpt .could you please share with us it'd be great !

what i'm looking is i want to sent my elasticsearch json file which i took lately from elasticdump from another elasticsearch server

@recepkabatas
Copy link

elasticdump --limit=10000 --input=Desktop/file.json --output=https://localhost:9200 --type=data
script is this previous script is my mistake 'date' ==> 'data'

@ferronrsmith
Copy link
Collaborator

The issue is very vague. What type of authentication is it ? (user/saml/ldap).

  1. If you need basic http auth, you can use it like this:
    --input=http://name:password@production.es.com:9200/my_index
  2. TLS X509 client authentication (Check the docs)

@recepkabatas
Copy link

The issue is very vague. What type of authentication is it ? (user/saml/ldap).

  1. If you need basic http auth, you can use it like this:
    --input=http://name:password@production.es.com:9200/my_index
  2. TLS X509 client authentication (Check the docs)
    i fixed the error for me with ;
    NODE_TLS_REJECT_UNAUTHORIZED=0 elasticdump --input=Desktop/file.json --output=https://name:password@production.es.com:9200 --type=data
    the key was NODE_TLS_REJECT_UNAUTHORIZED=0. i added this code then it works 👍
    thank you ! @ferronrsmith

@luizhpriotto
Copy link

Don't work for me.

My workaround was get the base64 enconde of user and password:

base64(elastic:password)

Include in the parameter --headers:

--headers='{"Authorization":"Basic ZWxhc3RpYzpwYXNzd29yZA=="}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants