fluent-plugin-cloudwatch-ingest 0.1.18 → 0.1.19

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: c436b9cc8f2c2131bcf7fd1b2cd602838dffb6e5
4
- data.tar.gz: 2a63f297aa1838e20834f2cec7e555c980cc4a71
3
+ metadata.gz: aa4d7de37a1441865fe99b2f640ee86bda9f578a
4
+ data.tar.gz: fef4e23e922beb7b27067c19b13ac14e70b574bc
5
5
  SHA512:
6
- metadata.gz: c36b1da93fa2da7f6b145de65b218c4e0b91849b7f3bfbab79558ac6c2c4ad2e3b6914b338cfc45a5a6aaeb5d21f564925e66cab485d906f6356e85d6d1af379
7
- data.tar.gz: d7b9cc3f47490b6b6350f29821db686af67ce4b6b4245e69f207526f692180e7436913bc4e32170b936a9efdc4ced100ac304b7262bbc647c7d2f01f9b716607
6
+ metadata.gz: a87141c07962e94d7a2ef10704859a5b7a610baf302a4802ec08b47258def126691cdfc43c0b5d3a0fa330890081ef65caf0ac33c1f7ce9b8174a4ab8146aaca
7
+ data.tar.gz: fb79932848721a3ab487d129e38e38512a03b03d9f9fd77234ebba74baf959cf61b5e4e5c8de3fd981c296395ccb01875fc281e6a1a9f9164e05bab04711f0fd
@@ -2,7 +2,7 @@ module Fluent
2
2
  module Plugin
3
3
  module Cloudwatch
4
4
  module Ingest
5
- VERSION = '0.1.18'.freeze
5
+ VERSION = '0.1.19'.freeze
6
6
  end
7
7
  end
8
8
  end
@@ -46,6 +46,7 @@ module Fluent::Plugin
46
46
  # Get a handle to Cloudwatch
47
47
  aws_options = {}
48
48
  Aws.config[:region] = @region
49
+ Aws.config[:logger] = log
49
50
  log.info("Working in region #{@region}")
50
51
 
51
52
  if @sts_enabled
@@ -114,13 +115,13 @@ module Fluent::Plugin
114
115
  begin
115
116
  response = if !log_stream_name_prefix.empty?
116
117
  @aws.describe_log_streams(
117
- log_group_name: group,
118
+ log_group_name: log_group_name,
118
119
  log_stream_name_prefix: log_stream_name_prefix,
119
120
  next_token: next_token
120
121
  )
121
122
  else
122
123
  @aws.describe_log_streams(
123
- log_group_name: group,
124
+ log_group_name: log_group_name,
124
125
  next_token: next_token
125
126
  )
126
127
  end
@@ -129,8 +130,7 @@ module Fluent::Plugin
129
130
  break unless reponse.next_token
130
131
  next_token = reponse.next_token
131
132
  rescue => boom
132
- log.error("Unable to retrieve log streams for group #{group}
133
- with stream prefix #{log_stream_name_prefix}: #{boom}")
133
+ log.error("Unable to retrieve log streams for group #{group} with stream prefix #{log_stream_name_prefix}: #{boom}") # rubocop:disable all
134
134
  log_streams = []
135
135
  next_token = nil
136
136
  sleep @api_interval
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloudwatch-ingest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pointer