Changing the password for Elasticsearch
Important
Elasticsearch is only supported up to version 6.8, which is no longer supported by Elastic. We therefore recommend using Storage as a Service instead, or if you do want to continue using self-hosted storage, using OpenSearch.
The procedure below details how you can change the password for an Elasticsearch database used by a specific DataMiner Agent.
Requirements
- Access to the server with administrator rights. This requires a connection dedicated completely or partially to this procedure, via VPN or local network.
- A sufficiently large maintenance window, especially for large DataMiner clusters, as the steps detailed below need to be done for each DMA, even in Failover systems.
Procedure
Check the requirements and connection
Prerequisites
- Remote access to the system
- User credentials with administrator rights
- Elasticsearch database is enabled in DataMiner
- DataMiner version 10.0.11, 10.1.0 or higher is installed
- Basic Elasticsearch knowledge
- Basic DataMiner knowledge
Steps
- Connect to the system via the designated VPN or host PC.
- Test if you can access DataMiner Cube.
- Check if the system is using the correct DataMiner version.
- Start Kibana from
C:\Program Files\Elasticsearch\Kibana\bin\kibana.bat
. - Wait until the last line in the command prompt reads
Status changed from red to green – Ready
.
Create a new username and password in Kibana
Prerequisites
- All previous requirements are met
- Kibana is started and ready
Steps
- Open a browser and go to
http://127.0.0.1:5601
. - Log in with the current username and password.
- In the menu on the left, go to Management.
- Go to Users and create a new user. Make sure "superuser" is selected as the role of the new user.
Update the Elasticsearch password using the SLNetClientTest tool
Prerequisites
- All previous requirements are met
- The new username and password have been created
Steps
Right-click the DataMiner Taskbar Utility icon and select Launch > Tools > Client Test.
In the Connection menu, select Connect.
In the Connect window, select the DMA, specify credentials with administrator rights, and click Connect.
Go to the Build Message tab of the main window.
In the Message Type drop-down list, select "UpdateDatabaseSettingsMessage".
Change the following attributes:
- ChangedFields: PWD
- DatabaseConfigType: SearchDatabase
- PWD: [the password of your choice]
Click Send message.
Update the username in DB.xml
Prerequisites
- All previous requirements are met
- The password has been updated
Steps
- Stop the DMA.
- Go to
C:\Skyline DataMiner\
and open the DB.xml file. - Look for the
<Database>
tag withtype="Elasticsearch"
, and change the contents of the<UID>
tag below it to the new username. - Save the file.
- Restart the DMA.
- When the DMA is online again, confirm that there are no errors in the Alarm Console or in the SLDBConnection log file.
Time estimate
Item | Activity | Duration |
---|---|---|
1 | Checking the requirements | 5 min. |
2 | Creating a new username and password | 10 min. |
3 | Updating the password | 10 min. |
4 | Updating the username | 10 min. |
Note
These activities need to be carried out for each DMA separately, so this may take some time for large DataMiner clusters.