fluent-plugin-cloudwatch-ingest-chaeyk 0.4.1 → 0.4.2
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: 791d8ae3a09f23b29a3a0e9a0714e75556339f89
|
4
|
+
data.tar.gz: 4837ba8d518e6f564b9a069e247fe21cc230ec8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df7af18b9f6fd76e2161875092fb7ed88be58a65bc66a23aa2df34f2ce7ac979c40b93a61d850b4b5eb2d9228cdb03cb30c597660175da52d22d284d3dc02d7a
|
7
|
+
data.tar.gz: 04777edff81450b15c3fb6eee7336af2dc5ce423137e7ff2db9d44030c0ac03dd7de34f686cc98ae7c138c2496bf5e7651f964acf54f4644259454c1828f4673
|
@@ -237,11 +237,14 @@ module Fluent::Plugin
|
|
237
237
|
|
238
238
|
# Once all events for this stream have been processed,
|
239
239
|
# in this iteration, store the forward token
|
240
|
-
|
240
|
+
log.info("stream: #{stream} token: #{stream_token} count: #{event_count}")
|
241
|
+
if stream_token or response.events.count > 0
|
242
|
+
log.info("saving: #{response.events}")
|
241
243
|
state.store[group][stream]['token'] = response.next_forward_token
|
242
244
|
state.store[group][stream]['timestamp'] = response.events.last ? response.events.last.timestamp : stream_timestamp
|
243
245
|
else
|
244
|
-
|
246
|
+
log.info("throw out")
|
247
|
+
state.store[group].delete(stream)
|
245
248
|
end
|
246
249
|
rescue Aws::CloudWatchLogs::Errors::InvalidParameterException => boom
|
247
250
|
log.error("cloudwatch token is expired or broken. trying with timestamp.");
|