fluent-plugin-elasticsearch 1.17.0 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18bf8262f87eae27a0ff3e7d5efc101984ae112e0b0b1f9fcc8c286b60f760ea
4
- data.tar.gz: d7964fb843241c67fa1920de545bc2c0759f4d6b7f45fbd3c2b3f8f66d7a7797
3
+ metadata.gz: b520bf633ecbf621fb94e7f4bfa83fa1922d678a577ab343b5b4936d602ceb4e
4
+ data.tar.gz: 9b05cb7ea5baffe76509387d61cb50c6ac1dffc097e273148ffae9b719f7cdf5
5
5
  SHA512:
6
- metadata.gz: ffbd3297314e2f3a9ebecaa0009ac17f13d17fc97b057ac94e462b706e667f86cc21f3290e14f744ae7e71c905583cddd54303923a88e66510bbfa6ef70f3245
7
- data.tar.gz: e814f94fb1110a3598136dc17ae846d80ff7e85c308a3f554d93c197dec94db4033a708502cce8c8c3257c34726ed509098f89f0f3fac96d4bb8aa2ff4cde524
6
+ metadata.gz: 3cf3aca2d2ed49e9807c17a7c740a001eb627575406f9336c69bdab6fe8a2f6156873a2488fda9947abc1c16332700497bcd2ebfe32eda53352acbdc1feb3b5e
7
+ data.tar.gz: b243859f0956ef22a561d1755a3a73700fb1cc82a18b857aa0248d068e72e40afd3ca78eeb3356fc898ccc6d5271504073cedae7aaa73a0b478eb4c89bb1a4f3
data/History.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ### [Unreleased]
4
4
 
5
+ ### 1.17.1
6
+ - backport strictness-scheme (#447)
7
+
5
8
  ### 1.17.0
6
9
  - Fix #434 bulk count (#437)
7
10
 
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'fluent-plugin-elasticsearch'
6
- s.version = '1.17.0'
6
+ s.version = '1.17.1'
7
7
  s.authors = ['diogo', 'pitr']
8
8
  s.email = ['pitr.vern@gmail.com', 'me@diogoterror.com']
9
9
  s.description = %q{Elasticsearch output plugin for Fluent event collector}
@@ -39,7 +39,7 @@ class Fluent::ElasticsearchOutput < Fluent::ObjectBufferedOutput
39
39
  config_param :user, :string, :default => nil
40
40
  config_param :password, :string, :default => nil, :secret => true
41
41
  config_param :path, :string, :default => nil
42
- config_param :scheme, :string, :default => 'http'
42
+ config_param :scheme, :enum, :list => [:https, :http], :default => :http
43
43
  config_param :hosts, :string, :default => nil
44
44
  config_param :target_index_key, :string, :default => nil
45
45
  config_param :target_type_key, :string, :default => nil
@@ -241,7 +241,7 @@ class Fluent::ElasticsearchOutput < Fluent::ObjectBufferedOutput
241
241
  {
242
242
  host: host_str.split(':')[0],
243
243
  port: (host_str.split(':')[1] || @port).to_i,
244
- scheme: @scheme
244
+ scheme: @scheme.to_s
245
245
  }
246
246
  else
247
247
  # New hosts format expects URLs such as http://logs.foo.com,https://john:pass@logs2.foo.com/elastic
@@ -253,7 +253,7 @@ class Fluent::ElasticsearchOutput < Fluent::ObjectBufferedOutput
253
253
  end
254
254
  end.compact
255
255
  else
256
- [{host: @host, port: @port, scheme: @scheme}]
256
+ [{host: @host, port: @port, scheme: @scheme.to_s}]
257
257
  end.each do |host|
258
258
  host.merge!(user: @user, password: @password) if !host[:user] && @user
259
259
  host.merge!(path: @path) if !host[:path] && @path
@@ -81,7 +81,7 @@ class Fluent::ElasticsearchOutputDynamic < Fluent::ElasticsearchOutput
81
81
  {
82
82
  host: host_str.split(':')[0],
83
83
  port: (host_str.split(':')[1] || @port).to_i,
84
- scheme: @scheme
84
+ scheme: @scheme.to_s
85
85
  }
86
86
  else
87
87
  # New hosts format expects URLs such as http://logs.foo.com,https://john:pass@logs2.foo.com/elastic
@@ -93,7 +93,7 @@ class Fluent::ElasticsearchOutputDynamic < Fluent::ElasticsearchOutput
93
93
  end
94
94
  end.compact
95
95
  else
96
- [{host: @host, port: @port.to_i, scheme: @scheme}]
96
+ [{host: @host, port: @port.to_i, scheme: @scheme.to_s}]
97
97
  end.each do |host|
98
98
  host.merge!(user: @user, password: @password) if !host[:user] && @user
99
99
  host.merge!(path: @path) if !host[:path] && @path
@@ -176,7 +176,7 @@ class ElasticsearchOutput < Test::Unit::TestCase
176
176
 
177
177
  assert_equal 'logs.google.com', instance.host
178
178
  assert_equal 777, instance.port
179
- assert_equal 'https', instance.scheme
179
+ assert_equal :https, instance.scheme
180
180
  assert_equal '/es/', instance.path
181
181
  assert_equal 'john', instance.user
182
182
  assert_equal 'doe', instance.password
@@ -68,6 +68,7 @@ class ElasticsearchOutputDynamic < Test::Unit::TestCase
68
68
  conf = instance.dynamic_config
69
69
  assert_equal 'logs.google.com', conf['host']
70
70
  assert_equal "777", conf['port']
71
+ assert_equal :https, instance.scheme
71
72
  assert_equal 'john', instance.user
72
73
  assert_equal 'doe', instance.password
73
74
  assert_equal '/es/', instance.path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - diogo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-20 00:00:00.000000000 Z
12
+ date: 2018-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd