Would you like to learn how to create an administrator account on Elasticsearch? In this tutorial, we are going to show you how to create a new administrator account on the ElasticSearch server on a computer running Ubuntu Linux.
• Ubuntu 18
• Ubuntu 19
• ElasticSearch 7.6.2
In our example, The ElastiSearch server IP address is 192.168.100.7.
ElasticSearch Related Tutorial:
On this page, we offer quick access to a list of tutorials related to ElasticSearch installation.
Tutorial ElasticSearch – Create an administrator account
Install the required packages.
Create an administrator account on the ElasticSearch server using HTTP.
It is possible that your ElasticSearch server may accept only HTTPS connections.
If that is true, create an administrator account on the ElasticSearch server using HTTPS.
Here is the command output.
In our example, the superuser account named ELASTIC was used to create an account named Bruno.
In our example, the account named Bruno was set as a superuser.
In our example, the password kamisama123 was set to the new user account.
Test the account login on the ElasticSearch server using HTTP.
Test the account login on the ElasticSearch server using HTTPS.
Here is the command output.
List all user accounts on the ElasticSearch server.
List all user accounts on the ElasticSearch server using HTTPS.
List all administrator accounts on the ElasticSearch server.
Here is the command output.
Congratulations! You have created a new administrator account on the ElasticSearch server.
Tutorial ElasticSearch – Create an administrator account using the Command-line
Install the required packages.
Locate the command named: elasticsearch-users
Create an administrator account on the ElasticSearch using the command-line.
Test the account login on the ElasticSearch server.
Test the account login on the ElasticSearch server using HTTPS.
Congratulations! You have created a new administrator account on the ElasticSearch server using the command-line.