fluent-plugin-elasticsearch 2.6.0 → 2.6.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 +4 -4
- data/History.md +3 -0
- data/appveyor.yml +36 -0
- data/fluent-plugin-elasticsearch.gemspec +1 -1
- data/lib/fluent/plugin/out_elasticsearch_dynamic.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bfdcf38e16814e5b5e71a312978677c190277fcfe6be1a830d65ed4ea9d764c2
|
|
4
|
+
data.tar.gz: 3a241a5a1e020b74384c7b72c4caac7e84a7b53465256ea28c36fc509187fa0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4e4ca1522f9b39efe8e1197d289f967a426b24db2c01bfc80552cc5e7582561a8b0275da1beb371b061f05c86dc98a71ff0142c790ca0907e26affc93df0f39
|
|
7
|
+
data.tar.gz: ce63c24535a2174731f6e4a1d385f5b1cc79996987c003daaaa5e5ced8a46bf65e4721e1fa3de1815eaf0fcdf06b0ccf15b8963a0ccdb85647e308f9b192157c
|
data/History.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
- Log ES response errors (#230)
|
|
5
5
|
- Use latest elasticsearch-ruby (#240)
|
|
6
6
|
|
|
7
|
+
### 2.6.1
|
|
8
|
+
- Prevent error when using template in elasticsearch_dynamic for elementally use case (#363)
|
|
9
|
+
|
|
7
10
|
### 2.6.0
|
|
8
11
|
- Handle high precision time format when using custom time_key (#360)
|
|
9
12
|
|
data/appveyor.yml
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
version: '{build}'
|
|
2
|
+
install:
|
|
3
|
+
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
|
4
|
+
- "%devkit%\\devkitvars.bat"
|
|
5
|
+
- IF EXIST "%devkit%\\bin\\ridk.cmd" ridk.cmd enable
|
|
6
|
+
- ruby --version
|
|
7
|
+
- gem --version
|
|
8
|
+
- bundle install
|
|
9
|
+
build: off
|
|
10
|
+
test_script:
|
|
11
|
+
- bundle exec rake test
|
|
12
|
+
|
|
13
|
+
# https://www.appveyor.com/docs/installed-software/#ruby
|
|
14
|
+
environment:
|
|
15
|
+
matrix:
|
|
16
|
+
- ruby_version: "24-x64"
|
|
17
|
+
devkit: C:\Ruby23-x64\DevKit
|
|
18
|
+
- ruby_version: "24"
|
|
19
|
+
devkit: C:\Ruby23\DevKit
|
|
20
|
+
- ruby_version: "23-x64"
|
|
21
|
+
devkit: C:\Ruby23-x64\DevKit
|
|
22
|
+
- ruby_version: "23"
|
|
23
|
+
devkit: C:\Ruby23\DevKit
|
|
24
|
+
- ruby_version: "22-x64"
|
|
25
|
+
devkit: C:\Ruby23-x64\DevKit
|
|
26
|
+
- ruby_version: "21-x64"
|
|
27
|
+
devkit: C:\Ruby23-x64\DevKit
|
|
28
|
+
- ruby_version: "22"
|
|
29
|
+
devkit: C:\Ruby23\DevKit
|
|
30
|
+
WIN_RAPID: true
|
|
31
|
+
- ruby_version: "21"
|
|
32
|
+
devkit: C:\Ruby23\DevKit
|
|
33
|
+
WIN_RAPID: true
|
|
34
|
+
matrix:
|
|
35
|
+
allow_failures:
|
|
36
|
+
- ruby_version: "21"
|
|
@@ -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 = '2.6.
|
|
6
|
+
s.version = '2.6.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}
|
|
@@ -35,8 +35,8 @@ module Fluent::Plugin
|
|
|
35
35
|
{'id_key' => '_id', 'parent_key' => '_parent', 'routing_key' => '_routing'}
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
def client(host)
|
|
39
38
|
|
|
39
|
+
def client(host = nil)
|
|
40
40
|
# check here to see if we already have a client connection for the given host
|
|
41
41
|
connection_options = get_connection_options(host)
|
|
42
42
|
|
|
@@ -277,6 +277,7 @@ module Fluent::Plugin
|
|
|
277
277
|
def is_existing_connection(host)
|
|
278
278
|
# check if the host provided match the current connection
|
|
279
279
|
return false if @_es.nil?
|
|
280
|
+
return false if @current_config.nil?
|
|
280
281
|
return false if host.length != @current_config.length
|
|
281
282
|
|
|
282
283
|
for i in 0...host.length
|
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: 2.6.
|
|
4
|
+
version: 2.6.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-02-
|
|
12
|
+
date: 2018-02-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: fluentd
|
|
@@ -142,6 +142,7 @@ files:
|
|
|
142
142
|
- PULL_REQUEST_TEMPLATE.md
|
|
143
143
|
- README.md
|
|
144
144
|
- Rakefile
|
|
145
|
+
- appveyor.yml
|
|
145
146
|
- fluent-plugin-elasticsearch.gemspec
|
|
146
147
|
- lib/fluent/plugin/elasticsearch_constants.rb
|
|
147
148
|
- lib/fluent/plugin/elasticsearch_error_handler.rb
|