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.

Tutorial ElasticSearch – Create an administrator account

Install the required packages.

Copy to Clipboard

Create an administrator account on the ElasticSearch server using HTTP.

Copy to Clipboard

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.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

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.

Copy to Clipboard

Test the account login on the ElasticSearch server using HTTPS.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

List all user accounts on the ElasticSearch server.

Copy to Clipboard

List all user accounts on the ElasticSearch server using HTTPS.

Copy to Clipboard

List all administrator accounts on the ElasticSearch server.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

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.

Copy to Clipboard

Locate the command named: elasticsearch-users

Copy to Clipboard

Create an administrator account on the ElasticSearch using the command-line.

Copy to Clipboard

Test the account login on the ElasticSearch server.

Copy to Clipboard

Test the account login on the ElasticSearch server using HTTPS.

Copy to Clipboard

Congratulations! You have created a new administrator account on the ElasticSearch server using the command-line.