fluent-plugin-cloudwatch-ingest 0.3.1 → 0.4.0
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 +4 -4
- data/README.md +4 -3
- data/lib/fluent/plugin/cloudwatch/ingest/version.rb +1 -1
- data/lib/fluent/plugin/in_cloudwatch_ingest.rb +4 -1
- 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: fa80f0aefe36b47c5f3045887a5302ad336218a9
|
4
|
+
data.tar.gz: 7e2c49d83bdefa4d7a4bac558cebc540701c0ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d6b4dddbfce28d62059e97890083b3722c1dda9e607665db910394318f32976d7dd32f80061e1a26613e1c9a06e6249af70d75e0a684ea985ab206783d16042
|
7
|
+
data.tar.gz: 71587df57dd7cc6500b1f203888a16d4bfd73a584e3412f1d6dd9d27c21e61a6276b5d2e45d5f3e7768d7fd770a96b2c28becfd063a790e6922ff439f3061c16
|
data/README.md
CHANGED
@@ -39,9 +39,10 @@ Or install it yourself as:
|
|
39
39
|
limit_events 10000
|
40
40
|
state_file_name /mnt/nfs/cloudwatch.state
|
41
41
|
interval 60
|
42
|
-
api_interval 5
|
43
|
-
limit_events 10000
|
44
|
-
event_start_time 0
|
42
|
+
api_interval 5 # Time to wait between API call failures before retry
|
43
|
+
limit_events 10000 # Number of events to fetch in any given iteration
|
44
|
+
event_start_time 0 # Do not fetch events before this time (UNIX epoch, miliseconds)
|
45
|
+
oldest_logs_first false # When true fetch the oldest logs first
|
45
46
|
<parse>
|
46
47
|
@type cloudwatch_ingest
|
47
48
|
expression /^(?<message>.+)$/
|
@@ -37,6 +37,8 @@ module Fluent::Plugin
|
|
37
37
|
config_param :limit_events, :integer, default: 10_000
|
38
38
|
desc 'Do not fetch events before this time'
|
39
39
|
config_param :event_start_time, :integer, default: 0
|
40
|
+
desc 'Fetch the oldest logs first'
|
41
|
+
config_param :oldest_logs_first, :bool, default: false
|
40
42
|
config_section :parse do
|
41
43
|
config_set_default :@type, 'cloudwatch_ingest'
|
42
44
|
desc 'Regular expression with which to parse the event message'
|
@@ -209,7 +211,8 @@ module Fluent::Plugin
|
|
209
211
|
log_stream_name: stream,
|
210
212
|
next_token: stream_token,
|
211
213
|
limit: @limit_events,
|
212
|
-
start_time: @event_start_time
|
214
|
+
start_time: @event_start_time,
|
215
|
+
start_from_head: @oldest_logs_first
|
213
216
|
)
|
214
217
|
|
215
218
|
response.events.each do |e|
|
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: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Pointer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|