Search code examples
elasticsearch

What is the default user and password for Elasticsearch 7.8.0?


What's is the default username and password for Elasticsearch 7.8.0? It's asking this on 9200 port. Tried these (username pass):

  • elastic [no pass]
  • elastic elastic
  • without entering anything
  • elastic changeme
  • elastic password
  • user password

OS: Windows 10 x64, installed ES with MSI installer from its website.

yml file:

bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
node.data: true
node.ingest: true
node.master: true
node.max_local_storage_nodes: 1
node.name: LAPTOP-1C4GVFSU
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
transport.tcp.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: true

username pass C:\Program Files\Elastic\Elasticsearch\7.8.0 C:\Program Files\Elastic\Elasticsearch\7.8.0\bin


Solution

  • Somehow default username password isn't working. I had to set the password on CMD by

    bin/elasticsearch-setup-passwords interactive
    
    bin/elasticsearch-setup-passwords auto
    

    The interactive parameter prompts new password for the users, whereas auto generates them for you.