fluent-plugin-cloudwatch-ingest 0.1.7 → 0.1.8
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: 5e006d972179721836c09b4534b8ee47d3bc138a
|
4
|
+
data.tar.gz: 36b654f33f3eb1c99cf21777d7131a2a4edeebf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e1f0262ebedf01a8b8923f45fede6951ed92429956279bab48d97951ec8ea1dc595f26b977b90918dabb23b666a42d8ea90a9dc0fb9ba82e9acaa490c49c167
|
7
|
+
data.tar.gz: ab18eeafb6d04bd0e5446a5fa827b30e6f9ce319da1345410807ec1875c3e8e358b874c98cecc7e13f782cee8053600c46f7d3c0d5f93e09b6574ff075a69d6b
|
@@ -6,8 +6,8 @@ require 'pathname'
|
|
6
6
|
require 'yaml'
|
7
7
|
|
8
8
|
module Fluent::Plugin
|
9
|
-
class
|
10
|
-
Fluent::Plugin.register_input('
|
9
|
+
class CloudwatchIngestInput < Fluent::Plugin::Input
|
10
|
+
Fluent::Plugin.register_input('cloudwatch_ingest', self)
|
11
11
|
helpers :compat_parameters
|
12
12
|
|
13
13
|
desc 'The region of the source cloudwatch logs'
|
@@ -41,6 +41,7 @@ module Fluent::Plugin
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def start
|
44
|
+
super
|
44
45
|
log.info('Started fluentd-plugin-cloudwatch-ingest')
|
45
46
|
|
46
47
|
# Get a handle to Cloudwatch
|
@@ -187,7 +188,7 @@ module Fluent::Plugin
|
|
187
188
|
end
|
188
189
|
end
|
189
190
|
|
190
|
-
class
|
191
|
+
class CloudwatchIngestInput::State < Hash
|
191
192
|
class LockFailed < RuntimeError; end
|
192
193
|
attr_accessor :statefile
|
193
194
|
|
@@ -206,7 +207,7 @@ module Fluent::Plugin
|
|
206
207
|
# exception if we can't
|
207
208
|
log.info("Obtaining exclusive lock on state file #{statefile}")
|
208
209
|
lockstatus = statefile.flock(File::LOCK_EX | File::LOCK_NB)
|
209
|
-
raise
|
210
|
+
raise CloudwatchIngestInput::State::LockFailed if lockstatus == false
|
210
211
|
|
211
212
|
merge!(YAML.safe_load(statefile.read))
|
212
213
|
log.info("Loaded state for #{keys.size} log groups from #{statefile}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-cloudwatch-ingest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Pointer
|
@@ -117,7 +117,7 @@ files:
|
|
117
117
|
- fluent-plugin-cloudwatch-ingest.gemspec
|
118
118
|
- lib/fluent/plugin/cloudwatch/ingest.rb
|
119
119
|
- lib/fluent/plugin/cloudwatch/ingest/version.rb
|
120
|
-
- lib/fluent/plugin/
|
120
|
+
- lib/fluent/plugin/in_cloudwatch_ingest.rb
|
121
121
|
homepage: https://github.com/sampointer/fluent-plugin-cloudwatch-ingest
|
122
122
|
licenses: []
|
123
123
|
metadata:
|