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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 079b6c74b0b1c1c460d7a83a243acf6e804e3950
4
- data.tar.gz: 752186183a7e7e8066a6afa6242e24781c9676e5
3
+ metadata.gz: 1d2ee1ae20a382ab708d3db9131f2025e238372e
4
+ data.tar.gz: 49fc208ab9ba5a142d8c7573108a8184a6b6aefa
5
5
  SHA512:
6
- metadata.gz: f5933bd2f6625047d5ee2e77cef8846375098511afd1daf8a46f905e948041ab641ec161d6c18936cf01be88943560412db60967be909ff6fed7132780de2c6e
7
- data.tar.gz: e8ee1b95e55a84ac886be9e905e68508efe78e11ded37c5a5d37d74ecea70c76deca296bde401341fb2feb50775fecb1129619604ff6927e6041f2f6be230fe8
6
+ metadata.gz: 6cb64dc332a7ffd69948d8ebe3cfa330cce023903d9d3b798f61a33effc67461780974e4f99c493a5b1d98e32a344fc516562d3832b084ec7ec1b2b8d4c4ef99
7
+ data.tar.gz: c13e35a7d8937e44a020fc07fe4521585d92ce3f0d7f0077ebde071d11b1b2c113376d2b5103c3d13111daf040cf8fda5695693bb7069e6cf242dff600d45ed0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## 1.4.5
2
+ - BugFix: undeclared var in rescue
1
3
  ## 1.4.4
2
4
  - Feature: make set_codec_by_folder match as regex
3
5
  e.g.: set_codec_by_folder => { ".*-ELB-logs" => "plain"}
@@ -124,8 +124,12 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
124
124
 
125
125
 
126
126
  def set_codec (folder)
127
- @logger.debug("Automatically switching from #{@codec.class.config_name} to #{set_codec_by_folder[folder]} codec", :plugin => self.class.config_name)
128
- LogStash::Plugin.lookup("codec", "#{set_codec_by_folder[folder]}").new("charset" => @codec.charset)
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
- begin
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.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"
metadata CHANGED
@@ -1,7 +1,7 @@
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.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Herweg