To change the Kibana password:
- SSH to the virtual host on which Health and Wellness (BETA) is deployed.
-
Go to tools folder using the command:
cd /usr/share/elasticsearch/plugins/opendistro_security/tools/
-
Generate the hash for the new password using the command:
sh hash.sh -p <new password>
For example, sh hash.sh -p netwitness
- Copy the generated hash.
-
Go to the securityconfig folder using the command:
cd /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/
-
Check if the internal_users.yml file exists using the command:
ls -
Replace the hash value in the internal_users.yml file for Admin user with the generated hash that is obtained in step 4.
Note: Make sure you replace with the correct hash to log in to Kibana UI successfully.
- Save the file.
-
Go to tools folder using the command:
cd /usr/share/elasticsearch/plugins/opendistro_security/tools/
-
Update the security configuration changes in Elasticsearch using the command:
sh securityadmin.sh -cd ../securityconfig/ -icl -nhnv -cacert /etc/elasticsearch/elasticsearch-trusts.pem -cert /etc/elasticsearch/elasticsearch-cert.pem -key /etc/elasticsearch/elasticsearch-key.pem
Note: After this is done, check if you can log in to Kibana using the username and new password.
- SSH to the Admin Server.
-
Enter the following command:
nw-shell
The console window is displayed. -
Connect to metrics-server using the following command:
connect --service metrics-server
- Enter the login command:
login - Enter the admin username and password.
- Set the Elasticsearch password using the following commands:
-
cd /rsa/metrics/elastic/password
-
set <new password> For example, set netwitness
-
Note: The <new password> should be same as in step 3.
-
Set the Kibana password using the following commands:
-
cd /rsa/metrics/kibana/password
-
set <new password> For example, set netwitness
-
Note: The <new password> should be same as in step 3.
-
Exit from nw-shell using the command:
exit
- SSH to the Health and Wellness (BETA) virtual host.
- Restart the metrics server on the Health and Wellness (BETA) virtual host using the command:
service rsa-nw-metrics-server restart