logstash-input-s3-sns-sqs 1.4.3 → 1.4.4

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: cb572034a924e029ae569b3748f0ccebeb640c44
4
- data.tar.gz: 8108bfac0091dbd9e9c213dc43743f2e626301ba
3
+ metadata.gz: 079b6c74b0b1c1c460d7a83a243acf6e804e3950
4
+ data.tar.gz: 752186183a7e7e8066a6afa6242e24781c9676e5
5
5
  SHA512:
6
- metadata.gz: 1631222559bfb47c5b85a48b4ad6f227ea3e7b0d77bb9f8dbb78f3d5fb185edf2cc8b205848d9a3978fc408ea0d3b427d03fccb537e5ff148914581b4a87530e
7
- data.tar.gz: 21b616763c272dbbb005c89a81a1b48316aba0c02b65aadab38c81ea8f27c51838fdb5b475be51fecbb48ccd496ec40e35d00523b8c8dc770ab500b4620fb12c
6
+ metadata.gz: f5933bd2f6625047d5ee2e77cef8846375098511afd1daf8a46f905e948041ab641ec161d6c18936cf01be88943560412db60967be909ff6fed7132780de2c6e
7
+ data.tar.gz: e8ee1b95e55a84ac886be9e905e68508efe78e11ded37c5a5d37d74ecea70c76deca296bde401341fb2feb50775fecb1129619604ff6927e6041f2f6be230fe8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.4.4
2
+ - Feature: make set_codec_by_folder match as regex
3
+ e.g.: set_codec_by_folder => { ".*-ELB-logs" => "plain"}
1
4
  ## 1.4.3
2
5
  - Fix: skip_delete on S3::Errors::AccessDenied
3
6
  - Feature: codec per s3 folder
@@ -135,6 +135,8 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
135
135
  require "aws-sdk-resources"
136
136
 
137
137
  @runner_threads = []
138
+ #make this hash keys lookups match like regex
139
+ hash_key_is_regex(set_codec_by_folder)
138
140
  @logger.info("Registering SQS input", :queue => @queue)
139
141
  setup_queue
140
142
 
@@ -467,4 +469,14 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
467
469
  retry
468
470
  end
469
471
  end
472
+
473
+ private
474
+ def hash_key_is_regex(myhash)
475
+ myhash.default_proc = lambda do |hash, lookup|
476
+ hash.each_pair do |key, value|
477
+ return value if %r[#{key}] =~ lookup.to_s
478
+ end
479
+ return nil
480
+ end
481
+ end
470
482
  end # class
@@ -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'
3
+ s.version = '1.4.4'
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,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: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Herweg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-21 00:00:00.000000000 Z
11
+ date: 2018-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement