logstash-input-s3-sns-sqs 2.0.1 → 2.0.2
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/CONTRIBUTORS +1 -0
- data/lib/logstash/inputs/s3snssqs.rb +1 -1
- data/lib/logstash/inputs/s3snssqs/log_processor.rb +1 -1
- data/logstash-input-s3-sns-sqs.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: f80cbe20a92d1a3041719215f1e7324c3bd5043798b522ff4faa9fa826c2d4f3
|
4
|
+
data.tar.gz: d64c634282dc1c60bdb4afac9dc98ee92937ed673b26cb7bb9c1ef782032d3df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10772e588d70541bbf235417845ddcc7c6fb9487e505fe2dea86d83335a6cdaabb1f1d76834c409045f64a89754a8bc3196579c92262755a9b217417901ff37d
|
7
|
+
data.tar.gz: 2ee44300b3dfb57a5d35d23d698ded44979d1612dee1dc790f08946fdbc5ac1426fc86595684e107ffcdd95838fc69e15754483984a04e02e44f393b07e774a3
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTORS
CHANGED
@@ -3,6 +3,7 @@ reports, or in general have helped logstash along its way.
|
|
3
3
|
|
4
4
|
Contributors:
|
5
5
|
* cherweg(this fork + some bugfixes)
|
6
|
+
* holgerjenczewski1007 (thank you for the refactoring)
|
6
7
|
* joshuaspence (event metadata)
|
7
8
|
* Heiko-san (initial contributor)
|
8
9
|
* logstash-input-sqs plugin as code base
|
@@ -323,7 +323,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
|
|
323
323
|
|
324
324
|
# Will be remove in further releases...
|
325
325
|
def get_object_folder(key)
|
326
|
-
if match
|
326
|
+
if match = /#{s3_key_prefix}\/?(?<type_folder>.*?)\/.*/.match(key)
|
327
327
|
return match['type_folder']
|
328
328
|
else
|
329
329
|
return ""
|
@@ -64,7 +64,7 @@ module LogProcessor
|
|
64
64
|
event.set("[@metadata][s3][object_key]", key)
|
65
65
|
event.set("[@metadata][s3][bucket_name]", bucket)
|
66
66
|
event.set("[@metadata][s3][full_folder]", folder)
|
67
|
-
event.set("[@metadata][s3][object_folder]", get_object_folder(
|
67
|
+
event.set("[@metadata][s3][object_folder]", get_object_folder(key))
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-s3-sns-sqs'
|
3
|
-
s.version = '2.0.
|
3
|
+
s.version = '2.0.2'
|
4
4
|
s.licenses = ['Apache-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: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Herweg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|