Password reset of elastic user

I lost my "elastic" user password and now I am unable to change.

Error I am getting when I run below mention command.

root@siem:/usr/share/elasticsearch/bin# ./elasticsearch-setup-passwords interactive

Failed to authenticate user 'elastic' against http://192.168.1.58:9200/_security/_authenticate?pretty
Possible causes include:

  • The password for the 'elastic' user has already been changed on this cluster
  • Your elasticsearch node is running against a different keystore
    This tool used the keystore at /etc/elasticsearch/elasticsearch.keystore

ERROR: Failed to verify bootstrap password

Thank you,
Bhargav

See Tim's answer here please as it describes the possible solutions for your question

1 Like

Hello Ikakavas,

Thank you for your response but I don't have any path like this "bin/x-pack/users" and also don't know how to add file realm in elastic.
Let me know if you have any solution.

Thank you,
Bhargav

It's bin/elasticsearch-users in version 7.

See our docs

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