Elasticsearch 8 Security Tutorial - Set password
Spring Boot 3 Security
Elasticsearch 8 Security Tutorial - Set password Elasticsearch 8 Security Tutorial - Configuring SSL, TLS, and HTTPS Elasticsearch 8 Security Tutorial - Store credentials using keystore
Video
This tutorial is explained in the below Youtube Video.Implementation
Go to the elasticsearch downloads page. Click on the Windows button to download the latest elasticsearch installable. In our case it is 8.8.2.This will be a zip folder. Unzip it as follows.
Open the command prompt as an admin. Go to the elasticsearch bin folder and type the following command
elasticsearch.batThis will start elasticsearch.
Next we will be setting the elasticsearch password. For this do not close the previous command prompt window which is running elasticsearch. Open another command prompt as as admin and go to the bin folder. Previously we would have used the following command.
elasticsearch-setup-passwords interactiveAccording to the elasticsearch documentation the above command is depricated.
Instead we will be using the following command for setting the elasticsearch password.
elasticsearch-reset-password -u elastic --interactive
We are able to access the portal as follows -