logstash-input-s3-sns-sqs 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b5cad63ad6ad5fe08a612d79f9f1f9bca0eb694
4
- data.tar.gz: 7994ae0ca300a057e96ccd94bfcbcf40c4c1b792
3
+ metadata.gz: 75d610de1c48fd3e5cc00b1c867cc21eaea6e3c1
4
+ data.tar.gz: 0fdf5bb05918562318431308ea15ace790b0108c
5
5
  SHA512:
6
- metadata.gz: 97ece7e3fe47be904f90e0eb68b348ee2d3e66d2dba85bfa516ee5bd6d09673525c523e64179990d335d7343bf24dbd16c511d32bcfc97823af3ffa2bcbb957a
7
- data.tar.gz: 058365db434b83b113afac30dbb3d6802638511cb59928c7e6ebeecc2a619687b843727b013e9d76582ac6396397db2b636286c8827495267c7cf88a4415cc37
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
- if hash['Message'] then
135
- # typically there will be only 1 record per event, but since it is an array we will
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
- JSON.parse(hash['Message'])['Records'].each do |record|
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.5'
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.5
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: 2017-11-17 00:00:00.000000000 Z
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