logstash-input-s3-sns-sqs 2.0.1 → 2.0.2

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
  SHA256:
3
- metadata.gz: 9989a06ffe035de2692ed0331fc45b9da60ddab3270826487eeb75fd20e882cb
4
- data.tar.gz: e36504f3dca4413e4b34edee8e1a82203444837f785a36b8e2450f83f98102e3
3
+ metadata.gz: f80cbe20a92d1a3041719215f1e7324c3bd5043798b522ff4faa9fa826c2d4f3
4
+ data.tar.gz: d64c634282dc1c60bdb4afac9dc98ee92937ed673b26cb7bb9c1ef782032d3df
5
5
  SHA512:
6
- metadata.gz: e538a1426547653719bf0f2dba0aaae03bb80c50b5259ddd69871c209961cc21c389ba587028aa1bc57b017fa4445929350a7cab5833d713d5a0e8d4289f530b
7
- data.tar.gz: 589100a9362b9bdb79df9c5ad8e68568175bc8384c6c5302634a2923b82edd8ce4ce6455bb269089e4aed314844bf2ea2cabe39d55f6d3d38c45fa8448b2fa77
6
+ metadata.gz: 10772e588d70541bbf235417845ddcc7c6fb9487e505fe2dea86d83335a6cdaabb1f1d76834c409045f64a89754a8bc3196579c92262755a9b217417901ff37d
7
+ data.tar.gz: 2ee44300b3dfb57a5d35d23d698ded44979d1612dee1dc790f08946fdbc5ac1426fc86595684e107ffcdd95838fc69e15754483984a04e02e44f393b07e774a3
@@ -1,3 +1,6 @@
1
+ ##2.0.2
2
+ FIX:
3
+ - Wrong input for type folder, leads to empty types
1
4
  ##2.0.1
2
5
  FIX:
3
6
  - Deadlock while message decoding
@@ -3,6 +3,7 @@ reports, or in general have helped logstash along its way.
3
3
 
4
4
  Contributors:
5
5
  * cherweg(this fork + some bugfixes)
6
+ * holgerjenczewski1007 (thank you for the refactoring)
6
7
  * joshuaspence (event metadata)
7
8
  * Heiko-san (initial contributor)
8
9
  * logstash-input-sqs plugin as code base
@@ -323,7 +323,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
323
323
 
324
324
  # Will be remove in further releases...
325
325
  def get_object_folder(key)
326
- if match=/#{s3_key_prefix}\/?(?<type_folder>.*?)\/.*/.match(key)
326
+ if match = /#{s3_key_prefix}\/?(?<type_folder>.*?)\/.*/.match(key)
327
327
  return match['type_folder']
328
328
  else
329
329
  return ""
@@ -64,7 +64,7 @@ module LogProcessor
64
64
  event.set("[@metadata][s3][object_key]", key)
65
65
  event.set("[@metadata][s3][bucket_name]", bucket)
66
66
  event.set("[@metadata][s3][full_folder]", folder)
67
- event.set("[@metadata][s3][object_folder]", get_object_folder(folder))
67
+ event.set("[@metadata][s3][object_folder]", get_object_folder(key))
68
68
  end
69
69
  end
70
70
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-s3-sns-sqs'
3
- s.version = '2.0.1'
3
+ s.version = '2.0.2'
4
4
  s.licenses = ['Apache-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: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Herweg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-26 00:00:00.000000000 Z
11
+ date: 2019-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement