fluent-plugin-elasticsearch 3.8.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -6
- data/History.md +7 -0
- data/README.md +51 -18
- data/appveyor.yml +3 -13
- data/fluent-plugin-elasticsearch.gemspec +2 -2
- data/lib/fluent/plugin/elasticsearch_index_template.rb +4 -3
- data/lib/fluent/plugin/out_elasticsearch.rb +57 -26
- data/lib/fluent/plugin/out_elasticsearch_dynamic.rb +1 -1
- data/test/plugin/test_out_elasticsearch.rb +429 -157
- data/test/plugin/test_out_elasticsearch_dynamic.rb +0 -21
- metadata +5 -5
@@ -169,27 +169,6 @@ class ElasticsearchOutputDynamic < Test::Unit::TestCase
|
|
169
169
|
assert_equal '_doc', instance.type_name
|
170
170
|
end
|
171
171
|
|
172
|
-
sub_test_case 'connection exceptions' do
|
173
|
-
test 'default connection exception' do
|
174
|
-
driver(Fluent::Config::Element.new(
|
175
|
-
'ROOT', '', {
|
176
|
-
'@type' => 'elasticsearch',
|
177
|
-
'host' => 'log.google.com',
|
178
|
-
'port' => 777,
|
179
|
-
'scheme' => 'https',
|
180
|
-
'path' => '/es/',
|
181
|
-
'user' => 'john',
|
182
|
-
'password' => 'doe',
|
183
|
-
}, [
|
184
|
-
Fluent::Config::Element.new('buffer', 'tag', {
|
185
|
-
}, [])
|
186
|
-
]
|
187
|
-
))
|
188
|
-
logs = driver.logs
|
189
|
-
assert_logs_include(logs, /you should specify 2 or more 'flush_thread_count'/, 1)
|
190
|
-
end
|
191
|
-
end
|
192
|
-
|
193
172
|
def test_defaults
|
194
173
|
config = %{
|
195
174
|
host logs.google.com
|
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:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- diogo
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-01-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|
@@ -88,14 +88,14 @@ dependencies:
|
|
88
88
|
requirements:
|
89
89
|
- - "~>"
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 3.
|
91
|
+
version: 3.3.0
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - "~>"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 3.
|
98
|
+
version: 3.3.0
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: minitest
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
|
-
rubygems_version: 3.
|
195
|
+
rubygems_version: 3.1.2
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Elasticsearch output plugin for Fluent event collector
|