How to reset password?

Hi ,

I forgot my password for my elasticsearch
I configured my elasticsearch.yml with:

  • network.host: 0.0.0.0
  • discovery.seed_hosts: [“127.0.0.1”, “[::1]”]
  • discovery.type: single-node
  • xpack.security.enabled: true

I ran the command before

./bin/elasticsearch-setup-passwords interactive

is there any way to change my password again?

@stephane_chan

what version are you on...

https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-password.html

I'm using elasticsearch version 7.17

Hi @stephane_chan

Not easy in 7.17 take a look at this post

In short you need to create a new local superuser
Then reset the elastic password using the API and that new super user.