diff --git a/lib/logstash/inputs/elasticsearch.rb b/lib/logstash/inputs/elasticsearch.rb index 1319d7f..98225cb 100644 --- a/lib/logstash/inputs/elasticsearch.rb +++ b/lib/logstash/inputs/elasticsearch.rb @@ -381,6 +381,7 @@ def validate_authentication end def setup_ssl + @ssl = true if @hosts.any? {|h| h.scheme == "https" } @ssl && @ca_file ? { :ssl => true, :ca_file => @ca_file } : {} end