logstash-input-sqs_s3 1.1.17 → 1.1.18
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/sqs_s3.rb +5 -1
- data/logstash-input-sqs_s3.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cad9324861bf7ce6d54bc842c2dba651c75b5e61c2f09d0ac30cbc4a5551adb
|
4
|
+
data.tar.gz: 8010a16c55ea7abe6e34ef40e327cbd88aa533639a7ed2e5190185085462d0c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2638d7616714566f6920b0ed6316df94b5e983775da93f814e50bd023ad4756972a8d61386afb273b7e082c666f5db123fd6fcfc5e8c84965c7ddbb692bdc9f5
|
7
|
+
data.tar.gz: 204290f4c66822b350d43f6c3eabc1e21a8d2f346bf852f7d3d5f6d6890fc5a108964dc7446ea3ad0fe8e7b5d929fca27a61b239f109c5b0bd22cd4ea978cc18
|
data/CHANGELOG.md
CHANGED
@@ -194,7 +194,11 @@ class LogStash::Inputs::SQSS3 < LogStash::Inputs::Threadable
|
|
194
194
|
# assess currently running load (in MB)
|
195
195
|
@current_load += (record['s3']['object']['size'].to_f / 1000000)
|
196
196
|
|
197
|
-
|
197
|
+
if record['s3']['object']['key'].include?("/firehose/") then
|
198
|
+
lines = body.read.encode('UTF-8', 'binary').gsub("}{", "}\n{").split(/\n/)
|
199
|
+
else
|
200
|
+
lines = body.read.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: "\u2370").split(/\n/)
|
201
|
+
end
|
198
202
|
|
199
203
|
# Set the codec to json if required, otherwise the default is plain text. Firehose is always in JSON format
|
200
204
|
if response.content_type == "application/json" or record['s3']['object']['key'].include?("/firehose/") then
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-sqs_s3'
|
3
|
-
s.version = '1.1.
|
3
|
+
s.version = '1.1.18'
|
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 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. Full credit goes to Heiko Finzel. Republishing this gem to support Logstash 5."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-sqs_s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heiko Finzel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|