logstash-input-s3-sns-sqs 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/inputs/s3snssqs.rb +12 -0
- data/logstash-input-s3-sns-sqs.gemspec +1 -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: 079b6c74b0b1c1c460d7a83a243acf6e804e3950
|
4
|
+
data.tar.gz: 752186183a7e7e8066a6afa6242e24781c9676e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5933bd2f6625047d5ee2e77cef8846375098511afd1daf8a46f905e948041ab641ec161d6c18936cf01be88943560412db60967be909ff6fed7132780de2c6e
|
7
|
+
data.tar.gz: e8ee1b95e55a84ac886be9e905e68508efe78e11ded37c5a5d37d74ecea70c76deca296bde401341fb2feb50775fecb1129619604ff6927e6041f2f6be230fe8
|
data/CHANGELOG.md
CHANGED
@@ -135,6 +135,8 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
135
135
|
require "aws-sdk-resources"
|
136
136
|
|
137
137
|
@runner_threads = []
|
138
|
+
#make this hash keys lookups match like regex
|
139
|
+
hash_key_is_regex(set_codec_by_folder)
|
138
140
|
@logger.info("Registering SQS input", :queue => @queue)
|
139
141
|
setup_queue
|
140
142
|
|
@@ -467,4 +469,14 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
467
469
|
retry
|
468
470
|
end
|
469
471
|
end
|
472
|
+
|
473
|
+
private
|
474
|
+
def hash_key_is_regex(myhash)
|
475
|
+
myhash.default_proc = lambda do |hash, lookup|
|
476
|
+
hash.each_pair do |key, value|
|
477
|
+
return value if %r[#{key}] =~ lookup.to_s
|
478
|
+
end
|
479
|
+
return nil
|
480
|
+
end
|
481
|
+
end
|
470
482
|
end # class
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-s3-sns-sqs'
|
3
|
-
s.version = '1.4.
|
3
|
+
s.version = '1.4.4'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Get logs from AWS s3 buckets as issued by an object-created event via sns -> sqs."
|
6
6
|
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"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-s3-sns-sqs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Herweg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|