fluent-plugin-elasticsearch 3.2.3 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 386df98b3bdb0768fed0a39523212eb7a130a3649a3c62d816c47244ada798b4
4
- data.tar.gz: a5b77aead07505926c2d000b3ea06a718024c9948a03b6a0306ed219d72bfc4d
3
+ metadata.gz: 87e8dce0d946717ddad6f80e9c43682ea3e66d470ce7593f3ddc894c2f2efa59
4
+ data.tar.gz: 2721ab242a253c8d14e50b37a6484d5d51b240b2561ff872e43a1c5a6b943eec
5
5
  SHA512:
6
- metadata.gz: 87f31633a7d45390731927b6d4d51af0ab974d11678b338135cba97b2c8cd0363c561858dcc24c9d7885cb380ffc9869827504d8884e650b5d611fe8e27b9906
7
- data.tar.gz: a58a987a97ec793d21d06a06e2a988e5d401a74dbbe8677c020fbc5f22a9137cc4dea44501e936c660caee44ea1732a6fabe9bbcbea20b1269d0259314eebc04
6
+ metadata.gz: bc68a120c99d8951c74bbe91e283a6229539c5b8a5d5afb41ccc4aea76ed528459b6debee8843e62547628bba57d243e87ac7a6aea0389ea617610c5ed1ad374
7
+ data.tar.gz: c2a7f70b7cc0ee50f0344775662969fddff4812cc01652e894739eb72fe5ee0fcf1483a53bbabc7067f509df3084988dbbe9cad5166891394e722b90ff5af6d1
data/History.md CHANGED
@@ -1,6 +1,8 @@
1
1
  ## Changelog [[tags]](https://github.com/uken/fluent-plugin-elasticsearch/tags)
2
2
 
3
3
  ### [Unreleased]
4
+ ### 3.2.4
5
+ - Pass chunk for built in placeholders (#553)
4
6
 
5
7
  ### 3.2.3
6
8
  - Expose exception backtrace for typhoeus gem loading error (#550)
@@ -24,3 +24,4 @@ Provide example config and message
24
24
  * paste boot log of fluentd or td-agent
25
25
  * paste result of ``fluent-gem list``, ``td-agent-gem list`` or your Gemfile.lock
26
26
  * ES version (optional)
27
+ * ES template(s) (optional)
@@ -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 = '3.2.3'
6
+ s.version = '3.2.4'
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}
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.required_ruby_version = Gem::Requirement.new(">= 2.0".freeze)
20
20
 
21
- s.add_runtime_dependency 'fluentd', '>= 0.14.20'
21
+ s.add_runtime_dependency 'fluentd', '>= 0.14.22'
22
22
  s.add_runtime_dependency 'excon', '>= 0'
23
23
  s.add_runtime_dependency 'elasticsearch'
24
24
 
@@ -500,10 +500,10 @@ EOC
500
500
  ret
501
501
  end
502
502
 
503
- def expand_placeholders(metadata)
504
- logstash_prefix = extract_placeholders(@logstash_prefix, metadata)
505
- index_name = extract_placeholders(@index_name, metadata)
506
- type_name = extract_placeholders(@type_name, metadata)
503
+ def expand_placeholders(chunk)
504
+ logstash_prefix = extract_placeholders(@logstash_prefix, chunk)
505
+ index_name = extract_placeholders(@index_name, chunk)
506
+ type_name = extract_placeholders(@type_name, chunk)
507
507
  return logstash_prefix, index_name, type_name
508
508
  end
509
509
 
@@ -518,7 +518,7 @@ EOC
518
518
  meta = {}
519
519
 
520
520
  tag = chunk.metadata.tag
521
- extracted_values = expand_placeholders(chunk.metadata)
521
+ extracted_values = expand_placeholders(chunk)
522
522
 
523
523
  chunk.msgpack_each do |time, record|
524
524
  next unless record.is_a? Hash
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: 3.2.3
4
+ version: 3.2.4
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: 2019-02-19 00:00:00.000000000 Z
12
+ date: 2019-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 0.14.20
20
+ version: 0.14.22
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 0.14.20
27
+ version: 0.14.22
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: excon
30
30
  requirement: !ruby/object:Gem::Requirement