logstash-input-s3-sns-sqs 1.1.5 → 1.1.6
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/lib/logstash/inputs/s3snssqs.rb +4 -3
- 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: 75d610de1c48fd3e5cc00b1c867cc21eaea6e3c1
|
4
|
+
data.tar.gz: 0fdf5bb05918562318431308ea15ace790b0108c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d6ffeca392ea7f5ac597942df3faabb85b9fd41ec0c5c5341e2ae115c13ae7345315fd31ca2bd7491707042e3be931fbeca2365827d2c9e017e04f512d0ffae
|
7
|
+
data.tar.gz: d5fc3995e1ac8bcf43e251e63ae68619e8b8ade5b35713449a2d296ad3be73677a6828991e848cb0603bb12b99544e8245a14a4c11835b60e174f874eb7fa490
|
@@ -131,10 +131,11 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
131
131
|
@logger.debug("handle_message", :hash => hash, :message => message)
|
132
132
|
# there may be test events sent from the s3 bucket which won't contain a Records array,
|
133
133
|
# we will skip those events and remove them from queue
|
134
|
-
|
135
|
-
|
134
|
+
message = JSON.parse(hash['Message'])
|
135
|
+
if message['Records'] then
|
136
|
+
# typically there will be only 1 record per event, but since it is an array we will
|
136
137
|
# treat it as if there could be more records
|
137
|
-
|
138
|
+
message['Records'].each do |record|
|
138
139
|
@logger.debug("We found a record", :record => record)
|
139
140
|
# in case there are any events with Records that aren't s3 object-created events and can't therefore be
|
140
141
|
# processed by this plugin, we will skip them and remove them from queue
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-s3-sns-sqs'
|
3
|
-
s.version = '1.1.
|
3
|
+
s.version = '1.1.6'
|
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.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Herweg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|