Skip to content

Elasticsearch 8

Carsten König edited this page Jul 24, 2022 · 5 revisions

You can use elasticvue to connect to an elasticsearch 8 cluster. The following defaults are changed in elasticsearch 8:

  • Elasticsearch 8 configures credentials by default, you can no longer access the cluster without logging in
  • Elasticsearch 8 uses ssl by default, make sure that your browser trusts the certificate

What this means

You can no longer simply connect to a cluster by entering http://localhost:9200 and clicking "connect".

What you have to do

  1. You need the credentials for your cluster
  2. Your browser needs to trust the ssl certificate used by your cluster

1. Credentials

Elastisearch 8 will generate a password when you start the cluster for the first time. Check the logs and save the password. Use the provided password for the elastic user. You can change the password if needed:

bin/elasticsearch-reset-password -u elastic -i

2. SSL Certificate

You have to import the CA that was used to generate the certificate. See Access clusters using SSL (Option 2)

When you browsers trusts the ssl certificate simply use the elastic user and the provided password to login via elasticvue.

Alternative (disable security)

Setting the environment variable xpack.security.enabled=false will cause elasticsearch 8 to have the same behaviour as elasticsearch 7 (no auth, no SSL needed). Note that you should never use this in publicly exposed instances.