logstash-input-cloudwatch_logs 1.0.0.pre → 1.0.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/lib/logstash/inputs/cloudwatch_logs.rb +2 -2
- data/logstash-input-cloudwatch_logs.gemspec +2 -2
- data/spec/inputs/cloudwatch_logs_spec.rb +0 -17
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b55aeb72158a604f708028054920105c2a3f0a3
|
4
|
+
data.tar.gz: 4c2ebb43177277297674095d621abe496efb3ae0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25cebc29c48696dbd4c3af26e5991bf22a8b51d954cd02917d0436fb9dff744906b0fe500aa12bcf166edcfec4fee73a4770957156133fe9f1c7d4df8bc1947a
|
7
|
+
data.tar.gz: 4b1fe5d192fa096ecc3cb02eb379e7c5b901d64c4764563478ad47b3352c77fff0d15d5b06821632546f367ac8738ba2c01711d8fda8a0d0b1fb947770c568f9
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
# Release Notes for `logstash-input-cloudwatch_logs`
|
2
2
|
|
3
|
-
## v1.0.0 Pre-Release (2017-06-
|
4
|
-
*
|
3
|
+
## v1.0.0.pre2 Pre-Release 2 (2017-06-28)
|
4
|
+
* Remove the breaking change in v1.0.0.pre. `log_group` is now a `string` supporting `lists`, allowing either notation
|
5
|
+
* Change startup log from TRACE to DEBUG, supporting Logstash 2.4
|
6
|
+
* Relax the contstraint on `logstash-mixin-aws` supporting Logstash 2.4
|
7
|
+
|
8
|
+
## v1.0.0.pre Pre-Release 1 (2017-06-24)
|
9
|
+
* BREAKING CHANGE: `log_group` must now be an array, adds support for specifying multiple groups or prefixes (Fixes [#13](https://github.com/lukewaite/logstash-input-cloudwatch-logs/issues/13))
|
5
10
|
* Refactored ingestion, fixes multiple memory leaks (Fixes [#24](https://github.com/lukewaite/logstash-input-cloudwatch-logs/issues/4))
|
6
11
|
* Pull only log_events since last ingestion (Fixes [#10](https://github.com/lukewaite/logstash-input-cloudwatch-logs/issues/10))
|
7
12
|
* Incrementally write to since_db on each page of data from the CWL API (Fixes [#4](https://github.com/lukewaite/logstash-input-cloudwatch-logs/issues/4))
|
@@ -29,7 +29,7 @@ class LogStash::Inputs::CloudWatch_Logs < LogStash::Inputs::Base
|
|
29
29
|
|
30
30
|
# Log group(s) to use as an input. If `log_group_prefix` is set
|
31
31
|
# to `true`, then each member of the array is treated as a prefix
|
32
|
-
config :log_group, :validate => :
|
32
|
+
config :log_group, :validate => :string, :list => true, :required => true
|
33
33
|
|
34
34
|
# Where to write the since database (keeps track of the date
|
35
35
|
# the last handled log stream was updated). The default will write
|
@@ -49,7 +49,7 @@ class LogStash::Inputs::CloudWatch_Logs < LogStash::Inputs::Base
|
|
49
49
|
public
|
50
50
|
def register
|
51
51
|
require "digest/md5"
|
52
|
-
@logger.
|
52
|
+
@logger.debug("Registering cloudwatch_logs input", :log_group => @log_group)
|
53
53
|
settings = defined?(LogStash::SETTINGS) ? LogStash::SETTINGS : nil
|
54
54
|
@sincedb = {}
|
55
55
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-cloudwatch_logs'
|
4
|
-
s.version = '1.0.0.pre'
|
4
|
+
s.version = '1.0.0.pre.2'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = 'Stream events from CloudWatch Logs.'
|
7
7
|
s.description = 'This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program'
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
|
22
22
|
# Gem dependencies
|
23
23
|
s.add_runtime_dependency 'logstash-core-plugin-api', '>= 1.60', '<= 2.99'
|
24
|
-
s.add_runtime_dependency 'logstash-mixin-aws', '>= 4.
|
24
|
+
s.add_runtime_dependency 'logstash-mixin-aws', '>= 4.0.0'
|
25
25
|
s.add_runtime_dependency 'stud', '~> 0.0.22'
|
26
26
|
|
27
27
|
s.add_development_dependency 'logstash-devutils'
|
@@ -23,21 +23,4 @@ describe LogStash::Inputs::CloudWatch_Logs do
|
|
23
23
|
expect {subject.register}.to_not raise_error
|
24
24
|
end
|
25
25
|
end
|
26
|
-
|
27
|
-
describe '#run' do
|
28
|
-
let(:config) {
|
29
|
-
{
|
30
|
-
'access_key_id' => '1234',
|
31
|
-
'secret_access_key' => 'secret',
|
32
|
-
'log_group' => ['sample-log-group'],
|
33
|
-
'region' => 'us-east-1'
|
34
|
-
}
|
35
|
-
}
|
36
|
-
subject {LogStash::Inputs::CloudWatch_Logs.new(config)}
|
37
|
-
|
38
|
-
it "runs" do
|
39
|
-
subject.register
|
40
|
-
expect{subject.run({})}.to_not raise_error
|
41
|
-
end
|
42
|
-
end
|
43
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-cloudwatch_logs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre
|
4
|
+
version: 1.0.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Waite
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -35,7 +35,7 @@ dependencies:
|
|
35
35
|
requirements:
|
36
36
|
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version: 4.
|
38
|
+
version: 4.0.0
|
39
39
|
name: logstash-mixin-aws
|
40
40
|
prerelease: false
|
41
41
|
type: :runtime
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 4.
|
46
|
+
version: 4.0.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|