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
}
Amine Maalfi
  • 145
  • 9

1 Answers1

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.

Amine Maalfi
  • 145
  • 9