logstash-input-s3-sns-sqs 1.4.1 → 1.4.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 +2 -0
- data/lib/logstash/inputs/s3snssqs.rb +10 -2
- data/logstash-input-s3-sns-sqs.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed1788afadf83807b126ee90abb0bc0d07852bdf
|
4
|
+
data.tar.gz: 64c1c4a0d088339c66e234b68607191e4a733115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 086ea149de024ca358c9ca48b1a1d1e557dea44f550c428d42ff05c4ee6c5d263e9ff9c534f00a90e9e58738cb4dd6c02f8a65d831d46d7e980aba5b11df85bd
|
7
|
+
data.tar.gz: f6d21b1564c83997d20ef60a05be2f28efa9e90c29a63acea5d93073afef24ed732457300dd59dbf5843460ef3976155fd68648bf5630472256470240c6be175
|
data/CHANGELOG.md
CHANGED
@@ -295,7 +295,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
295
295
|
event.set("[@metadata][s3]", { "object_key" => key })
|
296
296
|
event.set("[@metadata][s3]", { "bucket_name" => bucket })
|
297
297
|
if match=/#{s3_key_prefix}\/?(?<type_folder>.*?)\/.*/.match(key)
|
298
|
-
event.set('[@metadata][s3]', {"
|
298
|
+
event.set('[@metadata][s3]', {"object_folder" => match['type_folder']})
|
299
299
|
end
|
300
300
|
end
|
301
301
|
end
|
@@ -392,7 +392,15 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
392
392
|
|
393
393
|
public
|
394
394
|
def stop
|
395
|
-
@runner_threads.each
|
395
|
+
@runner_threads.each do |c|
|
396
|
+
begin
|
397
|
+
@logger.info("Stopping thread ... ", :thread => c.inspect)
|
398
|
+
c.wakeup
|
399
|
+
rescue
|
400
|
+
@logger.error("Cannot stop thread ... try to kill him", :thread => c.inspect)
|
401
|
+
c.kill
|
402
|
+
end
|
403
|
+
end
|
396
404
|
end
|
397
405
|
|
398
406
|
private
|
@@ -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.2'
|
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"
|