Elasticsearch default credentials

Hello guys, 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
}

Hi there! Where did you find this ? You must be reading a very old resource as default credentials were removed in version 6.0. See Configure security in Elasticsearch | Elasticsearch Guide [8.11] | Elastic for how you can set the passwords for the builtin users after installation, and how you can create your own users after that.

yes thank you i've just figured that out i must've read some old post!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.