fluent-plugin-elasticsearch 1.17.0 → 1.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +3 -0
- data/fluent-plugin-elasticsearch.gemspec +1 -1
- data/lib/fluent/plugin/out_elasticsearch.rb +3 -3
- data/lib/fluent/plugin/out_elasticsearch_dynamic.rb +2 -2
- data/test/plugin/test_out_elasticsearch.rb +1 -1
- data/test/plugin/test_out_elasticsearch_dynamic.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b520bf633ecbf621fb94e7f4bfa83fa1922d678a577ab343b5b4936d602ceb4e
|
4
|
+
data.tar.gz: 9b05cb7ea5baffe76509387d61cb50c6ac1dffc097e273148ffae9b719f7cdf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cf3aca2d2ed49e9807c17a7c740a001eb627575406f9336c69bdab6fe8a2f6156873a2488fda9947abc1c16332700497bcd2ebfe32eda53352acbdc1feb3b5e
|
7
|
+
data.tar.gz: b243859f0956ef22a561d1755a3a73700fb1cc82a18b857aa0248d068e72e40afd3ca78eeb3356fc898ccc6d5271504073cedae7aaa73a0b478eb4c89bb1a4f3
|
data/History.md
CHANGED
@@ -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.
|
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, :
|
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
|
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.
|
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-
|
12
|
+
date: 2018-07-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|