Understanding that Logstash uses .conf files to authenticate against Elasticsearch, I am here today to ask for your help in changing the current password I have configured in the .conf files from Logstash.
Not sure if I understood, the authentication is done on Elasticsearch side, if you want to change the password for the elastic user, you need to do that on Elasticsearch or using the Kibana UI.
The key I currently use is very old, and I need to assign a new one.
Do I need to log in directly to each of the servers in the Elasticsearch cluster to modify the .yml or something like that? Or is there another method? That is my question.
No, the password is set on the cluster, it exists in the security index, to change it you need to use the Change Password API or change it using the Kibana UI, in the User Management part.
After you change it will will also need to change any configuration that uses the old password, for example, if your in your kibana.yml you configures Kibana to use the elastic user and the old password, you will need to change it on the file and restart Kibana as well.
Thanks for your reply. To make sure I understand you correctly, I just need to log in from the Kibana graphical interface, then go to Dev Tools and run
POST /_security/user/elastic/_password
{
"password": “pepsi”
}
Then I log in to Logstash via SSH and modify each of the .conf files with the new password.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.