fluent-plugin-cloudwatch-ingest 1.7.0.rc4 → 1.7.0.rc7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/bin/deploy +1 -0
- data/fluent-plugin-cloudwatch-ingest.gemspec +1 -1
- data/lib/fluent/plugin/cloudwatch/ingest/version.rb +1 -1
- data/lib/fluent/plugin/in_cloudwatch_ingest.rb +8 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c9ac56d4ffb8d43e34b5a714cfd73905e75dcee
|
4
|
+
data.tar.gz: f625aacc73527565f0a656e6ceff8c51fc6c7de8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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
@@ -302,12 +302,14 @@ module Fluent::Plugin
|
|
302
302
|
raise # handle as error in run method
|
303
303
|
end
|
304
304
|
|
305
|
-
response.
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
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.
|
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-
|
11
|
+
date: 2018-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|