fluent-plugin-cloudwatch-ingest 1.7.0.rc4 → 1.7.0.rc7

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: 9c42dca008805bb5f68165fb13411d8a8d6485aa
4
- data.tar.gz: 8e0ad98f42b5dde7dbdad9d7966b957a72b3754f
3
+ metadata.gz: 2c9ac56d4ffb8d43e34b5a714cfd73905e75dcee
4
+ data.tar.gz: f625aacc73527565f0a656e6ceff8c51fc6c7de8
5
5
  SHA512:
6
- metadata.gz: 661cc11d5233d808792d5d1b9b23a740141277d45f1631a3c05edf24eeab3836d337c3c9d1a00b630c42036ba31cc92f37805ef9b71275403a57f1fb661cbe79
7
- data.tar.gz: b38414fb62cce41769e7ab52e7f762f1d1020780ec4d6d02b5afe921a6c466745e5b124756d83bd0c11326a852a81df962a0f4f955dfc6982c782e12b95cdd09
6
+ metadata.gz: 69faec8f01d35709f89a243994359843a000b2267c7dee87f1d096f5ef7956a3106382f8fd9299cab64776b1e7d86cc538307f001e1dfb40961bcdfd7ae08767
7
+ data.tar.gz: e0c836aac258afab3be0cd1e3e0ffa0d9b22537d94376ff73fb35f90cf4ceefab057ab14f2c7acba86874b883266bc391be30a6cc5f9ae2f539de6c27b3487d0
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # Fluentd Cloudwatch Plugin
2
- [![Circle CI](https://circleci.com/gh/sampointer/fluent-plugin-cloudwatch-ingest.svg?style=shield)](https://circleci.com/gh/sampointer/fluent-plugin-cloudwatch-ingest) [![Gem Version](https://badge.fury.io/rb/fluent-plugin-cloudwatch-ingest.svg)](https://badge.fury.io/rb/fluent-plugin-cloudwatch-ingest) ![](http://ruby-gem-downloads-badge.herokuapp.com/fluent-plugin-cloudwatch-ingest?type=total) [![Join the chat at https://gitter.im/fluent-plugin-cloudwatch-ingest](https://badges.gitter.im/fluent-plugin-cloudwatch-ingest.svg)](https://gitter.im/fluent-plugin-cloudwatch-ingest/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link) [![Dependency Status](https://gemnasium.com/badges/github.com/sampointer/fluent-plugin-cloudwatch-ingest.svg)](https://gemnasium.com/github.com/sampointer/fluent-plugin-cloudwatch-ingest)
2
+ [![Circle CI](https://circleci.com/gh/sampointer/fluent-plugin-cloudwatch-ingest.svg?style=shield)](https://circleci.com/gh/sampointer/fluent-plugin-cloudwatch-ingest) [![Gem Version](https://badge.fury.io/rb/fluent-plugin-cloudwatch-ingest.svg)](https://badge.fury.io/rb/fluent-plugin-cloudwatch-ingest) ![](http://ruby-gem-downloads-badge.herokuapp.com/fluent-plugin-cloudwatch-ingest?type=total) [![Join the chat at https://gitter.im/fluent-plugin-cloudwatch-ingest](https://badges.gitter.im/fluent-plugin-cloudwatch-ingest.svg)](https://gitter.im/fluent-plugin-cloudwatch-ingest/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
3
3
 
4
4
  ## Introduction
5
5
 
6
+ **I am no longer actively using this plugin and am [looking for maintainers](https://github.com/sampointer/fluent-plugin-cloudwatch-ingest/issues/26). In my experience [Cloudwatch Log Subscriptions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_ES_Stream.html) are vastly superior to external API consumers, which are subject to limiting and state synchronization issues.**
7
+
6
8
  This gem was created out of frustration with existing solutions for Cloudwatch log ingestion into a Fluentd pipeline. Specifically, it has been designed to support:
7
9
 
8
10
  * The 0.14.x fluentd plugin API
@@ -42,7 +44,7 @@ Or install it yourself as:
42
44
  interval 60
43
45
  max_log_streams_per_group 50
44
46
  error_interval 5 # Time to wait between error conditions before retry
45
- get_log_events_interval 0.0 # Time to pause between get_log_events to reduce throttle error
47
+ get_log_events_interval 0.0 # Time to pause between get_log_events to reduce throttle error
46
48
  limit_events 10000 # Number of events to fetch in any given iteration
47
49
  event_start_time 0 # Do not fetch events before this time (UNIX epoch, miliseconds)
48
50
  oldest_logs_first false # When true fetch the oldest logs first
data/bin/deploy CHANGED
@@ -7,4 +7,5 @@ mkdir -p /home/ubuntu/.gem/
7
7
  cp assets/credentials /home/ubuntu/.gem/credentials
8
8
  sed -i "s/REPLACEME/${rubygems_api_key}/g" /home/ubuntu/.gem/credentials
9
9
  chmod 0600 /home/ubuntu/.gem/credentials
10
+ echo "Pushing ${gem}"
10
11
  gem push ${gem}
@@ -1,4 +1,4 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'fluent/plugin/cloudwatch/ingest/version'
4
4
 
@@ -2,7 +2,7 @@ module Fluent
2
2
  module Plugin
3
3
  module Cloudwatch
4
4
  module Ingest
5
- VERSION = '1.7.0.rc4'.freeze
5
+ VERSION = '1.7.0.rc7'.freeze
6
6
  end
7
7
  end
8
8
  end
@@ -302,12 +302,14 @@ module Fluent::Plugin
302
302
  raise # handle as error in run method
303
303
  end
304
304
 
305
- response.events.each do |e|
306
- begin
307
- emit(e, group, stream)
308
- event_count += 1
309
- rescue StandardError => boom
310
- log.error("Failed to emit event #{e}: #{boom.inspect}")
305
+ if response.next_forward_token != param_next_token
306
+ response.events.each do |e|
307
+ begin
308
+ emit(e, group, stream)
309
+ event_count += 1
310
+ rescue StandardError => boom
311
+ log.error("Failed to emit event #{e}: #{boom.inspect}")
312
+ end
311
313
  end
312
314
  end
313
315
 
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: 1.7.0.rc4
4
+ version: 1.7.0.rc7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pointer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler