fluent-plugin-elasticsearch 2.8.5 → 2.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/History.md +3 -0
- data/README.md +2 -8
- data/appveyor.yml +4 -5
- data/fluent-plugin-elasticsearch.gemspec +1 -1
- data/lib/fluent/plugin/out_elasticsearch.rb +4 -0
- data/lib/fluent/plugin/out_elasticsearch_dynamic.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 282a2bfc80d90378c04ec44f035aeb941f2c98ed22b3a2f1b1add371ecf20aab
|
4
|
+
data.tar.gz: 6853f9d7ea05f2bc553636d597eb00d8074dbbac78d62ffca2042e35fedaefd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 195428011038d2a6249704c76b16bc0eb361b9f648b6c7e40cdde16ad7dee664e926e9ac71e18f840462ec5cd146a8abb039ec9ca77ad35bcf18fdff266d37dc
|
7
|
+
data.tar.gz: 2fb58796f3f38972b43347e9d686251722943882de537b7a206d2bba9cabc1052fc53009486e4d6a40ae19c30217dae5d2d41aaf2cdcc2226a072c6c61841850
|
data/.travis.yml
CHANGED
data/History.md
CHANGED
data/README.md
CHANGED
@@ -106,19 +106,13 @@ This plugin creates Elasticsearch indices by merely writing to them. Consider us
|
|
106
106
|
|
107
107
|
```
|
108
108
|
hosts host1:port1,host2:port2,host3:port3
|
109
|
-
# or
|
110
|
-
hosts https://customhost.com:443/path,https://username:password@host-failover.com:443
|
111
109
|
```
|
112
110
|
|
113
111
|
You can specify multiple Elasticsearch hosts with separator ",".
|
114
112
|
|
115
113
|
If you specify multiple hosts, this plugin will load balance updates to Elasticsearch. This is an [elasticsearch-ruby](https://github.com/elasticsearch/elasticsearch-ruby) feature, the default strategy is round-robin.
|
116
114
|
|
117
|
-
|
118
|
-
|
119
|
-
```
|
120
|
-
hosts https://%{j+hn}:%{passw@rd}@host1:443/elastic/,http://host2
|
121
|
-
```
|
115
|
+
**Note:** Up until v2.8.5, it was allowed to embed the username/password in the URL. However, this syntax is deprecated as of v2.8.6 because it was found to cause serious connection problems (See #394). Please migrate your settings to use the `user` and `password` field (described below) instead.
|
122
116
|
|
123
117
|
### user, password, path, scheme, ssl_verify
|
124
118
|
|
@@ -131,7 +125,7 @@ path /elastic_search/
|
|
131
125
|
scheme https
|
132
126
|
```
|
133
127
|
|
134
|
-
You can specify user and password for HTTP
|
128
|
+
You can specify user and password for HTTP Basic authentication.
|
135
129
|
|
136
130
|
And this plugin will escape required URL encoded characters within `%{}` placeholders.
|
137
131
|
|
data/appveyor.yml
CHANGED
@@ -13,21 +13,20 @@ test_script:
|
|
13
13
|
# https://www.appveyor.com/docs/installed-software/#ruby
|
14
14
|
environment:
|
15
15
|
matrix:
|
16
|
+
- ruby_version: "25-x64"
|
17
|
+
devkit: C:\Ruby23-x64\DevKit
|
18
|
+
- ruby_version: "25"
|
19
|
+
devkit: C:\Ruby23\DevKit
|
16
20
|
- ruby_version: "24-x64"
|
17
21
|
devkit: C:\Ruby23-x64\DevKit
|
18
22
|
- ruby_version: "24"
|
19
23
|
devkit: C:\Ruby23\DevKit
|
20
24
|
- ruby_version: "23-x64"
|
21
25
|
devkit: C:\Ruby23-x64\DevKit
|
22
|
-
- ruby_version: "23"
|
23
|
-
devkit: C:\Ruby23\DevKit
|
24
26
|
- ruby_version: "22-x64"
|
25
27
|
devkit: C:\Ruby23-x64\DevKit
|
26
28
|
- ruby_version: "21-x64"
|
27
29
|
devkit: C:\Ruby23-x64\DevKit
|
28
|
-
- ruby_version: "22"
|
29
|
-
devkit: C:\Ruby23\DevKit
|
30
|
-
WIN_RAPID: true
|
31
30
|
- ruby_version: "21"
|
32
31
|
devkit: C:\Ruby23\DevKit
|
33
32
|
WIN_RAPID: true
|
@@ -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.8.
|
6
|
+
s.version = '2.8.6'
|
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}
|
@@ -233,6 +233,10 @@ EOC
|
|
233
233
|
headers: { 'Content-Type' => @content_type.to_s },
|
234
234
|
request: { timeout: @request_timeout },
|
235
235
|
ssl: { verify: @ssl_verify, ca_file: @ca_file, version: @ssl_version }
|
236
|
+
},
|
237
|
+
http: {
|
238
|
+
user: @user,
|
239
|
+
password: @password
|
236
240
|
}
|
237
241
|
}), &adapter_conf)
|
238
242
|
es = Elasticsearch::Client.new transport: transport
|
@@ -55,6 +55,10 @@ module Fluent::Plugin
|
|
55
55
|
headers: { 'Content-Type' => @content_type.to_s },
|
56
56
|
request: { timeout: @request_timeout },
|
57
57
|
ssl: { verify: @ssl_verify, ca_file: @ca_file, version: @ssl_version }
|
58
|
+
},
|
59
|
+
http: {
|
60
|
+
user: @user,
|
61
|
+
password: @password
|
58
62
|
}
|
59
63
|
}), &adapter_conf)
|
60
64
|
es = Elasticsearch::Client.new transport: transport
|
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.8.
|
4
|
+
version: 2.8.6
|
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-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.7.
|
178
|
+
rubygems_version: 2.7.6
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: Elasticsearch output plugin for Fluent event collector
|