logstash-input-s3-sns-sqs 1.5.9 → 1.6.0
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 +3 -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: 90767d180f6cd7b2fa9f6a5bcabc1a48145ea6da
|
4
|
+
data.tar.gz: 5edfbb1c18997d348c26b1a64aaebb8d122b6469
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40bc21baac61cbcbcd7fe6af69f8a58dc2ad8f77d2869bbc26886232ef864dae3427768077a81e2bb5b5690121d78c01b36c5ec3534b8818be98d46cdee32d2f
|
7
|
+
data.tar.gz: 942de0725fa1befd61163fd9a66a8e151d9149ec44bf5eadaf88ce0a8ddf0a97df12e03df43a91a62d07e53382f9e7cdd9bc070321c6b250c2f8a0010be235b0
|
data/CHANGELOG.md
CHANGED
@@ -223,7 +223,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
223
223
|
if download_remote_file(object, filename)
|
224
224
|
if process_local_log( filename, key, folder, instance_codec, queue, bucket, message, size)
|
225
225
|
begin
|
226
|
-
FileUtils.remove_entry_secure(filename, true)
|
226
|
+
FileUtils.remove_entry_secure(filename, true) if File.exists? filename
|
227
227
|
delete_file_from_bucket(object)
|
228
228
|
rescue Exception => e
|
229
229
|
@logger.debug("We had problems to delete your file", :file => filename, :error => e)
|
@@ -231,7 +231,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
231
231
|
end
|
232
232
|
else
|
233
233
|
begin
|
234
|
-
FileUtils.remove_entry_secure(filename, true)
|
234
|
+
FileUtils.remove_entry_secure(filename, true) if File.exists? filename
|
235
235
|
rescue Exception => e
|
236
236
|
@logger.debug("We had problems clean up your tmp dir", :file => filename, :error => e)
|
237
237
|
end
|
@@ -336,7 +336,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
336
336
|
|
337
337
|
private
|
338
338
|
def get_object_folder(key)
|
339
|
-
if match=/#{s3_key_prefix}\/?(?<type_folder
|
339
|
+
if match=/#{s3_key_prefix}\/?(?<type_folder>.*?)\/.*/.match(key)
|
340
340
|
return match['type_folder']
|
341
341
|
else
|
342
342
|
return ""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-s3-sns-sqs'
|
3
|
-
s.version = '1.
|
3
|
+
s.version = '1.6.0'
|
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
|
+
version: 1.6.0
|
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-05-
|
11
|
+
date: 2018-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|