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: f3ed085b4e52cb51518cbcb5329a304fad4a33de
4
- data.tar.gz: 028096af0d9e7e78c244e1234671e7424bfeefb6
3
+ metadata.gz: fc38fea51325f4a9a5703accfc568c1d50728915
4
+ data.tar.gz: d941aa2bf701048bb5a59df378bc6d786f27c9e9
5
5
  SHA512:
6
- metadata.gz: bd51e7fa9bcbcb2abd77f0cc8ddffba9231204a02c229e4a3ec041f9d5b88bed41c9752669807c18896030627dc70acf8af08c877cad9573ddca383992774bc3
7
- data.tar.gz: 6556604b6d5303874ae953a1ddc5c74409f523811e888a67ebd00b7f1fd3a4a54c14bf51aa9f37dab5e309f71f28f19c692beeffe2b5d3c104215016c4376043
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
- "http://#{host}:#{port}#{client_settings[:path]}"
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
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-elasticsearch'
4
- s.version = '2.0.0.beta4'
4
+ s.version = '2.0.0.beta5'
5
5
  s.licenses = ['apache-2.0']
6
6
  s.summary = "Logstash Output to Elasticsearch"
7
7
  s.description = "Output events to elasticsearch"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta4
4
+ version: 2.0.0.beta5
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic