Logstash Can't read the elasticsearch username and password from Keystore!

Hello All,

I'm trying to build ELK stack on EC2 instances. I have built the ES cluster, Kibana and Logstash. The cluster and Kibana are happy and talking to each other fine but can't figure out the keystore issue with Logstash. I have done the path.setting and added the keystore (etc/logstash/logstash.keystore) , changed the permission/ownership on it :
(-rw------- 1 logstash root xxxxx /etc/logstash/logstash.keystore)
added the ES_PWD to it (it does list it)
in my logstash.conf file I have password => "${ES_PWD}"
but when I run it (sudo /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf ) it returns this error :
"Cannot evaluate ${ES_PWD}. Replacement variable ES_PWD is not defined in a Logstash secret store or an environment entry and there is no default value given"

Please help!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.