When I try to setup logstash x-pack with keystore , but I cannot make it
I have already generate logstash.keystore file and add few records.
but still not working
error as below:
logstash: ERROR: Failed to load settings file from "path.settings". Aborting... path.setting=/etc/logstash, exception=Java::OrgLogstashSecretStore::SecretStoreException::LoadException, message=>Found a file at /etc/logstash/logstash.keystore, but it is not a valid Logstash keystore.
logstash: [ERROR] 2018-03-27 17:53:59.683 [main] Logstash - java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit
systemd: logstash.service: main process exited, code=exited, status=1/FAILURE
Config:
------------ xpack management settings ----------------
xpack.management.enabled: true
xpack.management.elasticsearch.url: "http://elk6:9200/"
xpack.management.logstash.poll_interval: 5s
xpack.management.pipeline.id: ["default"]
xpack.management.elasticsearch.ssl.truststore.path: certificate/elastic-stack-ca.p12
xpack.management.elasticsearch.ssl.truststore.password: ${LS_SETTINGS_DIR}/${xpack.management.elasticsearch.ssl.truststore.password}
xpack.management.elasticsearch.ssl.keystore.path: certificate/elastic-stack-ca.p12
xpack.management.elasticsearch.ssl.keystore.password: ${LS_SETTINGS_DIR}/${xpack.management.elasticsearch.ssl.keystore.password}
------------ xpack monitoring settings ----------------
xpack.monitoring.elasticsearch.url: "http://elk6:9200/"
xpack.monitoring.elasticsearch.ssl.truststore.path: certificate/elastic-stack-ca.p12
xpack.monitoring.elasticsearch.ssl.truststore.password: ${xpack.monitoring.elasticsearch.ssl.truststore.password}
xpack.monitoring.collection.interval: 30s
xpack.monitoring.elasticsearch.ssl.keystore.path: certificate/elastic-stack-ca.p12
xpack.monitoring.elasticsearch.ssl.keystore.password: ${xpack.monitoring.elasticsearch.ssl.keystore.password}