logstash-output-elasticsearch 2.0.0.beta4-java → 2.0.0.beta5-java
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc38fea51325f4a9a5703accfc568c1d50728915
|
4
|
+
data.tar.gz: d941aa2bf701048bb5a59df378bc6d786f27c9e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0fe10fdfbc87183e69930513265739e7d85424c4097cbf9e6b4c4715dc7dafc92d21bfa0e5a7eeee34c23acd480603e2a77582406a03566764334afc5a4966f
|
7
|
+
data.tar.gz: 43216b5e2c5fb317e491b6c2ee31472add33fc936594ff1c7e7f18428b69b214a4853b274aa6ef657d19930b83be430a410ffc2325041efe7c25da3ef800f6d0
|
@@ -86,7 +86,8 @@ module LogStash::Outputs::Elasticsearch
|
|
86
86
|
client_settings = options[:client_settings] || {}
|
87
87
|
|
88
88
|
uris = hosts.map do |host|
|
89
|
-
|
89
|
+
proto = client_settings[:ssl] ? "https" : "http"
|
90
|
+
"#{proto}://#{host}:#{port}#{client_settings[:path]}"
|
90
91
|
end
|
91
92
|
|
92
93
|
@client_options = {
|
@@ -105,6 +106,8 @@ module LogStash::Outputs::Elasticsearch
|
|
105
106
|
@client_options[:headers] = { "Authorization" => "Basic #{token}" }
|
106
107
|
end
|
107
108
|
|
109
|
+
@logger.debug? && @logger.debug("Elasticsearch HTTP client options", client_options)
|
110
|
+
|
108
111
|
Elasticsearch::Client.new(client_options)
|
109
112
|
end
|
110
113
|
|