logstash-input-s3 3.3.4 → 3.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/inputs/s3.rb +4 -4
- data/logstash-input-s3.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7604e6bdb9c402c5b0a66e838ba0b124b7fa5e4e1a482d9f32a6c7efb9efbd5
|
4
|
+
data.tar.gz: 0ce9f4cb73567cf637da17169c67698dc113682261f6238c4eee3a020a4063ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e91c6d2dccb6733f91d76edb5a763e42bcb5bc14a42f6d729e115e89ff4f785f23644980c8239725f2f593ee1f72969ff0d02f0143a242788e359374a6a987a4
|
7
|
+
data.tar.gz: 8f2d477a65b46bb5f29c1635f1e82f36d554e3d5773a487de68343f58656d26a9e474cff44f59df48071dad2445469b86b81b55ee374b1781bdda844e06119a7
|
data/CHANGELOG.md
CHANGED
data/lib/logstash/inputs/s3.rb
CHANGED
@@ -255,11 +255,14 @@ class LogStash::Inputs::S3 < LogStash::Inputs::Base
|
|
255
255
|
|
256
256
|
private
|
257
257
|
def read_file(filename, &block)
|
258
|
-
if gzip?(filename)
|
258
|
+
if gzip?(filename)
|
259
259
|
read_gzip_file(filename, block)
|
260
260
|
else
|
261
261
|
read_plain_file(filename, block)
|
262
262
|
end
|
263
|
+
rescue => e
|
264
|
+
# skip any broken file
|
265
|
+
@logger.error("Failed to read the file. Skip processing.", :filename => filename, :exception => e.message)
|
263
266
|
end
|
264
267
|
|
265
268
|
def read_plain_file(filename, block)
|
@@ -278,9 +281,6 @@ class LogStash::Inputs::S3 < LogStash::Inputs::Base
|
|
278
281
|
while (line = buffered.readLine())
|
279
282
|
block.call(line)
|
280
283
|
end
|
281
|
-
rescue ZipException => e
|
282
|
-
@logger.error("Gzip codec: We cannot uncompress the gzip file", :filename => filename)
|
283
|
-
raise e
|
284
284
|
ensure
|
285
285
|
buffered.close unless buffered.nil?
|
286
286
|
decoder.close unless decoder.nil?
|
data/logstash-input-s3.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-s3'
|
4
|
-
s.version = '3.3.
|
5
|
-
s.licenses = ['Apache
|
4
|
+
s.version = '3.3.5'
|
5
|
+
s.licenses = ['Apache-2.0']
|
6
6
|
s.summary = "Streams events from files in a S3 bucket"
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
8
8
|
s.authors = ["Elastic"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,7 +133,7 @@ files:
|
|
133
133
|
- spec/support/helpers.rb
|
134
134
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
135
135
|
licenses:
|
136
|
-
- Apache
|
136
|
+
- Apache-2.0
|
137
137
|
metadata:
|
138
138
|
logstash_plugin: 'true'
|
139
139
|
logstash_group: input
|