0

i've found that the default credentials for ES are elastic:changeme but it's not working for me! am i missing something? the error :

{
"error": {
    "root_cause": [
        {
            "type": "security_exception",
            "reason": "failed to authenticate user [elastic]",
            "header": {
                "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
            }
        }
    ],
    "type": "security_exception",
    "reason": "failed to authenticate user [elastic]",
    "header": {
        "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
      }
   },
  "status": 401
}
4
  • can you add the elastic query , you are executing Commented Feb 28, 2020 at 9:20
  • any request... i'm also trying those on the browser on localhost:9200 Commented Feb 28, 2020 at 9:24
  • if you are using browser try elastic:changeme@localhost:9200, if on curl curl -XPUT -u elastic:changeme 'localhost:9200' -H 'Content-Type: application/json' -d' Commented Feb 28, 2020 at 9:30
  • nothing works!! Commented Feb 28, 2020 at 9:35

1 Answer 1

1

i have found the solution :

just run the command bin/elasticsearch-setup-passwords auto -u "http://localhost:9200" on cmd and passwords will be regenerated and printed in the console.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.