logstash-input-s3-sns-sqs 1.4.4 → 1.4.5
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 +7 -7
- 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: 1d2ee1ae20a382ab708d3db9131f2025e238372e
|
4
|
+
data.tar.gz: 49fc208ab9ba5a142d8c7573108a8184a6b6aefa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cb64dc332a7ffd69948d8ebe3cfa330cce023903d9d3b798f61a33effc67461780974e4f99c493a5b1d98e32a344fc516562d3832b084ec7ec1b2b8d4c4ef99
|
7
|
+
data.tar.gz: c13e35a7d8937e44a020fc07fe4521585d92ce3f0d7f0077ebde071d11b1b2c113376d2b5103c3d13111daf040cf8fda5695693bb7069e6cf242dff600d45ed0
|
data/CHANGELOG.md
CHANGED
@@ -124,8 +124,12 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
124
124
|
|
125
125
|
|
126
126
|
def set_codec (folder)
|
127
|
-
|
128
|
-
|
127
|
+
begin
|
128
|
+
@logger.debug("Automatically switching from #{@codec.class.config_name} to #{set_codec_by_folder[folder]} codec", :plugin => self.class.config_name)
|
129
|
+
LogStash::Plugin.lookup("codec", "#{set_codec_by_folder[folder]}").new("charset" => @codec.charset)
|
130
|
+
rescue Exception => e
|
131
|
+
@logger.error("Failed to set_codec with error", :error => e)
|
132
|
+
end
|
129
133
|
end
|
130
134
|
|
131
135
|
public
|
@@ -196,11 +200,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
196
200
|
key = CGI.unescape(record['s3']['object']['key'])
|
197
201
|
type_folder = get_object_folder(key)
|
198
202
|
# Set input codec by :set_codec_by_folder
|
199
|
-
|
200
|
-
instance_codec = set_codec(type_folder) unless set_codec_by_folder["#{type_folder}"].nil?
|
201
|
-
rescue
|
202
|
-
@logger.error("Failed to set_codec with error", :error => e)
|
203
|
-
end
|
203
|
+
instance_codec = set_codec(type_folder) unless set_codec_by_folder["#{type_folder}"].nil?
|
204
204
|
# try download and :skip_delete if it fails
|
205
205
|
#if record['s3']['object']['size'] < 10000000 then
|
206
206
|
process_log(bucket, key, type_folder, instance_codec, queue)
|
@@ -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.5'
|
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"
|