Would you like to learn how to enable the Elasticsearch user authentication on Ubuntu Linux? In this tutorial, we are going to show you how to enable the user authentication feature 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 – Enable user authentication
Install the required packages.
Test your communication with the ElasticSearch server.
Here is the command output.
Verify the license installed on the ElasticSearch server.
Here is the command output.
In our example, we have a basic license installed on the ElasticSearch server.
Enable the trial license on the ElasticSearch server.
Here is the command output.
Verify the license installed on the ElasticSearch server.
The user authentication is not available on the ElasticSearch basic license.
Tutorial ElasticSearch – Configure the user authentication
Stop the ElasticSearch service.
Edit the ElasticSearch configuration file named: elasticsearch.yml
Add the following lines at the end of the file.
Here is the original file, before our configuration.
Here is the file with our configuration.
Start the ElasticSearch service.
Test your communication with the ElasticSearch server.
Here is the command output.
The ElasticSearch server is requiring user authentication.
Set the password for the ElasticSearch internal accounts.
Here is the command output.
Test your communication with the ElasticSearch server using the ELASTIC user account.
Here is the command output.
You may choose to enter the user password on the command-line.
Congratulations! You have finished the ElasticSearch authentication configuration.