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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa4d7de37a1441865fe99b2f640ee86bda9f578a
|
4
|
+
data.tar.gz: fef4e23e922beb7b27067c19b13ac14e70b574bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a87141c07962e94d7a2ef10704859a5b7a610baf302a4802ec08b47258def126691cdfc43c0b5d3a0fa330890081ef65caf0ac33c1f7ce9b8174a4ab8146aaca
|
7
|
+
data.tar.gz: fb79932848721a3ab487d129e38e38512a03b03d9f9fd77234ebba74baf959cf61b5e4e5c8de3fd981c296395ccb01875fc281e6a1a9f9164e05bab04711f0fd
|
@@ -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:
|
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:
|
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
|