From 43af3d8dc19f0e3f4b72a7d28d4aea130a72f204 Mon Sep 17 00:00:00 2001 From: douniwan5788 Date: Fri, 25 Mar 2022 03:03:34 +0800 Subject: [PATCH] sync ssl detect with logstash-output-elasticsearch --- lib/logstash/inputs/elasticsearch.rb | 1 + 1 file changed, 1 insertion(+) 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