Hello.
I'm using Logstash 5.5 Elastic 5.5 Kibana 5.5 X-Pack 5.5
logstash - ssl - elastic
Here's the error:
[FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<ArgumentError: Setting "xpack.monitoring.elasticsearch.ssl.ca" must be a String. Received: ["/etc/logstash/ca.cert.pem"] (Array)>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:228:in validate'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:403:in
validate'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:413:in validate'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:191:in
set'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:64:in set_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:83:in
merge'", "org/jruby/RubyHash.java:1342:in each'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:83:in
merge'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:135:in validate_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:244:in
execute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:209:in
run'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in run'", "/usr/share/logstash/lib/bootstrap/environment.rb:71:in
(root)'"]}
Config logstash.yml (grep -v "^ #"):
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.url: "https://test:9200"
xpack.monitoring.elasticsearch.username: "logstash_internal"
xpack.monitoring.elasticsearch.password: "test"
xpack.monitoring.elasticsearch.ssl.ca: [ "/etc/logstash/ca.cert.pem" ]
path.data: /var/lib/logstash
path.config: /etc/logstash/conf.d
path.logs: /var/log/logstash
Config /etc/logstash/conf.d/logstash.conf
output {
elasticsearch {
user => "logstash_internal"
password => "test"
#ssl => true
#cacert => "/etc/logstash/ca.cert.pem"
document_type => "nginx_logs"
hosts => ["https://test:9200"]
#hosts => ["test:9200"]
index => "logstash-%{+YYYY.MM.dd}"
}
}
Pls HELP!