fluent-plugin-cloudwatch-ingest 0.1.30 → 0.1.31

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc1cb33ddb43fb7783d1367e8b2f2852fa0109b3
4
- data.tar.gz: 2d906137dc4a11f76ff82ea3fd3406baa6e08f8f
3
+ metadata.gz: 404277f2647c1a18842e3fe94b297e8129b86587
4
+ data.tar.gz: 855658146cee1f086dfbd1f61ccfc3f1fa17074a
5
5
  SHA512:
6
- metadata.gz: 064cbdc71f55a6c3d7fc6febc34a35706950c27e84d0f53ffa7edb21ab5ac118a6a4c7b4c904a92e8b868cde0a694ce4f5e49532ac0d757b19b799ff1fa4b24b
7
- data.tar.gz: 5b66f9eecb23c439328b085a6dbe51bc00f65129aa5991c44b606e6bb9fb8d290b807f484fb78a449e3fa800a20020238b619a4d2a0984c4a13cc3c2c18d7062
6
+ metadata.gz: a54d696e4a1365cc2d38955652825792673ede7c750568e1a046bbf314b8e8a207d08be8642648b4c1397fd7ede957063f521605b5d5d418f22f329260d3f7e4
7
+ data.tar.gz: ca3b66591abcbf319188805d693332fab452603606a43b73a22582f320f0e40f4dd9a0154e6bea6186e597dc7811a323877b3257e3ae96f17698613603fb4514
@@ -2,7 +2,7 @@ module Fluent
2
2
  module Plugin
3
3
  module Cloudwatch
4
4
  module Ingest
5
- VERSION = '0.1.30'.freeze
5
+ VERSION = '0.1.31'.freeze
6
6
  end
7
7
  end
8
8
  end
@@ -31,6 +31,9 @@ module Fluent::Plugin
31
31
  config_param :api_interval, :time, default: 5
32
32
  desc 'Tag to apply to record'
33
33
  config_param :tag, :string, default: 'cloudwatch'
34
+ config_section :parse do
35
+ config_set_default :@type, 'cloudwatch_ingest'
36
+ end
34
37
 
35
38
  def initialize
36
39
  super
@@ -77,6 +80,8 @@ module Fluent::Plugin
77
80
  private
78
81
 
79
82
  def emit(event)
83
+ log.warn("Event class #{event.class}")
84
+ log.warn("Got event #{event}")
80
85
  time, record = @parser.parse(event.message)
81
86
  router.emit(@tag, time, record)
82
87
  end
@@ -179,7 +184,11 @@ module Fluent::Plugin
179
184
  next_token: stream_token
180
185
  )
181
186
 
182
- response.events.each { |e| emit(e) }
187
+ begin
188
+ response.events.each { |e| emit(e) }
189
+ rescue => boom
190
+ log.error("Failed to emit event #{e}: #{boom}")
191
+ end
183
192
 
184
193
  # Once all events for this stream have been processed,
185
194
  # in this iteration, store the forward token
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloudwatch-ingest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.30
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pointer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-20 00:00:00.000000000 Z
11
+ date: 2017-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler