logstash-input-s3-sns-sqs 2.0.4 → 2.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94b617279b895a02ea10c98a541ac273b9a33c982d8c809a7960bd3fcb4dd111
|
4
|
+
data.tar.gz: cc780fbe8bf7fd9c4d523826d7d5a97c86f742ab2c3aad1ff34c3e67fc34ea5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24ee24a3844f15c799dc843175e715317131b90ab1c7fcf3889cedd35e258c57cbd01ea199d0974da75a23bc4974e684b039f275e89cbefbf2c139dcf73e94f3
|
7
|
+
data.tar.gz: 99eb062267ff1cd180c25fd340b52e3b9b9a88ab74766f853f4a3daeac2ade74eb6defcc20e782ce98611a812b6059997f2cc7be66874d030e2376339fe5af94
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
+
##2.0.5
|
2
|
+
-fix: crash on 0 byte file
|
3
|
+
-fix: type by folder function
|
1
4
|
##2.0.4
|
2
|
-
-
|
5
|
+
-fix: type-by-folder repair
|
6
|
+
-fix: crash on 0 byte file
|
3
7
|
##2.0.3
|
4
8
|
- Increase max parsing time -> drop event if reached
|
5
9
|
- watcher thread should raise an error in poller loop if timeout reached.
|
@@ -10,7 +10,8 @@ class MagicGzipValidator
|
|
10
10
|
# Ensure there are sufficient number of bytes to determine the
|
11
11
|
# signature.
|
12
12
|
if file.stat.size < minimum_bytes_for_determining_signature
|
13
|
-
|
13
|
+
puts "File too small to calculate signature"
|
14
|
+
throw :skip_delete
|
14
15
|
end
|
15
16
|
|
16
17
|
@file = file
|
@@ -14,7 +14,7 @@ module LogProcessor
|
|
14
14
|
file = record[:local_file]
|
15
15
|
codec = @codec_factory.get_codec(record)
|
16
16
|
folder = record[:folder]
|
17
|
-
type = @type_by_folder[folder]
|
17
|
+
type = @type_by_folder[record[:bucket]][folder]
|
18
18
|
metadata = {}
|
19
19
|
line_count = 0
|
20
20
|
event_count = 0
|
@@ -81,8 +81,8 @@ module LogProcessor
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def read_file(filename)
|
84
|
-
completed = false
|
85
84
|
zipped = gzip?(filename)
|
85
|
+
completed = false
|
86
86
|
file_stream = FileInputStream.new(filename)
|
87
87
|
if zipped
|
88
88
|
gzip_stream = GZIPInputStream.new(file_stream)
|
@@ -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.
|
3
|
+
s.version = '2.0.5'
|
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.
|
4
|
+
version: 2.0.5
|
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-
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|