logstash-input-aws-s3sqs 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +19 -0
- data/CONTRIBUTORS +12 -0
- data/Gemfile +2 -0
- data/LICENSE +13 -0
- data/NOTICE.TXT +5 -0
- data/README.md +86 -0
- data/lib/logstash/inputs/s3sqs.rb +238 -0
- data/lib/logstash/inputs/s3sqs/patch.rb +22 -0
- data/logstash-input-aws-s3sqs.gemspec +29 -0
- data/spec/inputs/s3sqs_spec.rb +9 -0
- data/spec/spec_helper.rb +2 -0
- metadata +120 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8531f1d7dfe8799058f118f8f62c4cb81cb9ef99
|
4
|
+
data.tar.gz: 9f3a4cf59134612c5aa05c7e6781b120eaf5618d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: efda3a53278ce0496db68975da1faf38aa4c69e0210175c0adf1f3a6ae68fa855ae24499d68b8893655676e8ed10b7a24868c409fb31636718444ecce64216f5
|
7
|
+
data.tar.gz: acd03b93310d5adfccf2383f5aa189f8483da4d0cfd34872ed9b5e3c7f45897ecb144081a7f2a635325de144249cdf6483a945446005e88a5621771510b9f032
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
## 1.1.1
|
2
|
+
- Added the ability to remove objects from S3 after processing.
|
3
|
+
- Workaround an issue with the Ruby autoload that causes "uninitialized constant `Aws::Client::Errors`" errors.
|
4
|
+
|
5
|
+
## 1.1.0
|
6
|
+
- Logstash 5 compatibility
|
7
|
+
|
8
|
+
## 1.0.3
|
9
|
+
- added some metadata to the event (bucket and object name as commited by joshuaspence)
|
10
|
+
- also try to unzip files ending with ".gz" (ALB logs are zipped but not marked with proper Content-Encoding)
|
11
|
+
|
12
|
+
## 1.0.2
|
13
|
+
- fix for broken UTF-8 (so we won't lose a whole s3 log file because of a single invalid line, ruby's split will die on those)
|
14
|
+
|
15
|
+
## 1.0.1
|
16
|
+
- same (because of screwed up rubygems.org release)
|
17
|
+
|
18
|
+
## 1.0.0
|
19
|
+
- Initial Release
|
data/CONTRIBUTORS
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
The following is a list of people who have contributed ideas, code, bug
|
2
|
+
reports, or in general have helped logstash along its way.
|
3
|
+
|
4
|
+
Contributors:
|
5
|
+
* joshuaspence (event metadata)
|
6
|
+
* Heiko-san (initial contributor)
|
7
|
+
* logstash-input-sqs plugin as code base
|
8
|
+
|
9
|
+
Note: If you've sent us patches, bug reports, or otherwise contributed to
|
10
|
+
Logstash, and you aren't on the list above and want to be, please let us know
|
11
|
+
and we'll make sure you're here. Contributions from folks like you are what make
|
12
|
+
open source awesome.
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/NOTICE.TXT
ADDED
data/README.md
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
# Logstash Plugin
|
2
|
+
|
3
|
+
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
4
|
+
|
5
|
+
It is fully free and fully open source. The license is Apache 2.0.
|
6
|
+
|
7
|
+
## Documentation
|
8
|
+
|
9
|
+
Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
|
10
|
+
|
11
|
+
- For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
|
12
|
+
- For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
|
13
|
+
|
14
|
+
## Need Help?
|
15
|
+
|
16
|
+
Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
|
17
|
+
|
18
|
+
## Developing
|
19
|
+
|
20
|
+
### 1. Plugin Developement and Testing
|
21
|
+
|
22
|
+
#### Code
|
23
|
+
- To get started, you'll need JRuby with the Bundler gem installed.
|
24
|
+
|
25
|
+
- Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization. We also provide [example plugins](https://github.com/logstash-plugins?query=example).
|
26
|
+
|
27
|
+
- Install dependencies
|
28
|
+
```sh
|
29
|
+
bundle install
|
30
|
+
```
|
31
|
+
|
32
|
+
#### Test
|
33
|
+
|
34
|
+
- Update your dependencies
|
35
|
+
|
36
|
+
```sh
|
37
|
+
bundle install
|
38
|
+
```
|
39
|
+
|
40
|
+
- Run tests
|
41
|
+
|
42
|
+
```sh
|
43
|
+
bundle exec rspec
|
44
|
+
```
|
45
|
+
|
46
|
+
### 2. Running your unpublished Plugin in Logstash
|
47
|
+
|
48
|
+
#### 2.1 Run in a local Logstash clone
|
49
|
+
|
50
|
+
- Edit Logstash `Gemfile` and add the local plugin path, for example:
|
51
|
+
```ruby
|
52
|
+
gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
53
|
+
```
|
54
|
+
- Install plugin
|
55
|
+
```sh
|
56
|
+
bin/plugin install --no-verify
|
57
|
+
```
|
58
|
+
- Run Logstash with your plugin
|
59
|
+
```sh
|
60
|
+
bin/logstash -e 'filter {awesome {}}'
|
61
|
+
```
|
62
|
+
At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
|
63
|
+
|
64
|
+
#### 2.2 Run in an installed Logstash
|
65
|
+
|
66
|
+
You can use the same **2.1** method to run your plugin in an installed Logstash by editing its `Gemfile` and pointing the `:path` to your local plugin development directory or you can build the gem and install it using:
|
67
|
+
|
68
|
+
- Build your plugin gem
|
69
|
+
```sh
|
70
|
+
gem build logstash-filter-awesome.gemspec
|
71
|
+
```
|
72
|
+
- Install the plugin from the Logstash home
|
73
|
+
```sh
|
74
|
+
bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
|
75
|
+
```
|
76
|
+
- Start Logstash and proceed to test the plugin
|
77
|
+
|
78
|
+
## Contributing
|
79
|
+
|
80
|
+
All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
|
81
|
+
|
82
|
+
Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
|
83
|
+
|
84
|
+
It is more important to the community that you are able to contribute.
|
85
|
+
|
86
|
+
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
@@ -0,0 +1,238 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
require "logstash/inputs/threadable"
|
4
|
+
require "logstash/namespace"
|
5
|
+
require "logstash/timestamp"
|
6
|
+
require "logstash/plugin_mixins/aws_config"
|
7
|
+
require "logstash/errors"
|
8
|
+
require 'logstash/inputs/s3sqs/patch'
|
9
|
+
|
10
|
+
Aws.eager_autoload!
|
11
|
+
|
12
|
+
# Get logs from AWS s3 buckets as issued by an object-created event via sqs.
|
13
|
+
#
|
14
|
+
# This plugin is based on the logstash-input-sqs plugin but doesn't log the sqs event itself.
|
15
|
+
# Instead it assumes, that the event is an s3 object-created event and will then download
|
16
|
+
# and process the given file.
|
17
|
+
#
|
18
|
+
# Some issues of logstash-input-sqs, like logstash not shutting down properly, have been
|
19
|
+
# fixed for this plugin.
|
20
|
+
#
|
21
|
+
# In contrast to logstash-input-sqs this plugin uses the "Receive Message Wait Time"
|
22
|
+
# configured for the sqs queue in question, a good value will be something like 10 seconds
|
23
|
+
# to ensure a reasonable shutdown time of logstash.
|
24
|
+
# Also use a "Default Visibility Timeout" that is high enough for log files to be downloaded
|
25
|
+
# and processed (I think a good value should be 5-10 minutes for most use cases), the plugin will
|
26
|
+
# avoid removing the event from the queue if the associated log file couldn't be correctly
|
27
|
+
# passed to the processing level of logstash (e.g. downloaded content size doesn't match sqs event).
|
28
|
+
#
|
29
|
+
# This plugin is meant for high availability setups, in contrast to logstash-input-s3 you can safely
|
30
|
+
# use multiple logstash nodes, since the usage of sqs will ensure that each logfile is processed
|
31
|
+
# only once and no file will get lost on node failure or downscaling for auto-scaling groups.
|
32
|
+
# (You should use a "Message Retention Period" >= 4 days for your sqs to ensure you can survive
|
33
|
+
# a weekend of faulty log file processing)
|
34
|
+
# The plugin will not delete objects from s3 buckets, so make sure to have a reasonable "Lifecycle"
|
35
|
+
# configured for your buckets, which should keep the files at least "Message Retention Period" days.
|
36
|
+
#
|
37
|
+
# A typical setup will contain some s3 buckets containing elb, cloudtrail or other log files.
|
38
|
+
# These will be configured to send object-created events to a sqs queue, which will be configured
|
39
|
+
# as the source queue for this plugin.
|
40
|
+
# (The plugin supports gzipped content if it is marked with "contend-encoding: gzip" as it is the
|
41
|
+
# case for cloudtrail logs)
|
42
|
+
#
|
43
|
+
# The logstash node therefore must have sqs permissions + the permissions to download objects
|
44
|
+
# from the s3 buckets that send events to the queue.
|
45
|
+
# (If logstash nodes are running on EC2 you should use a ServerRole to provide permissions)
|
46
|
+
# [source,json]
|
47
|
+
# {
|
48
|
+
# "Version": "2012-10-17",
|
49
|
+
# "Statement": [
|
50
|
+
# {
|
51
|
+
# "Effect": "Allow",
|
52
|
+
# "Action": [
|
53
|
+
# "sqs:Get*",
|
54
|
+
# "sqs:List*",
|
55
|
+
# "sqs:ReceiveMessage",
|
56
|
+
# "sqs:ChangeMessageVisibility*",
|
57
|
+
# "sqs:DeleteMessage*"
|
58
|
+
# ],
|
59
|
+
# "Resource": [
|
60
|
+
# "arn:aws:sqs:us-east-1:123456789012:my-elb-log-queue"
|
61
|
+
# ]
|
62
|
+
# },
|
63
|
+
# {
|
64
|
+
# "Effect": "Allow",
|
65
|
+
# "Action": [
|
66
|
+
# "s3:Get*",
|
67
|
+
# "s3:List*",
|
68
|
+
# "s3:DeleteObject"
|
69
|
+
# ],
|
70
|
+
# "Resource": [
|
71
|
+
# "arn:aws:s3:::my-elb-logs",
|
72
|
+
# "arn:aws:s3:::my-elb-logs/*"
|
73
|
+
# ]
|
74
|
+
# }
|
75
|
+
# ]
|
76
|
+
# }
|
77
|
+
#
|
78
|
+
class LogStash::Inputs::S3SQS < LogStash::Inputs::Threadable
|
79
|
+
include LogStash::PluginMixins::AwsConfig::V2
|
80
|
+
|
81
|
+
BACKOFF_SLEEP_TIME = 1
|
82
|
+
BACKOFF_FACTOR = 2
|
83
|
+
MAX_TIME_BEFORE_GIVING_UP = 60
|
84
|
+
EVENT_SOURCE = 'aws:s3'
|
85
|
+
EVENT_TYPE = 'ObjectCreated'
|
86
|
+
|
87
|
+
config_name "s3sqs"
|
88
|
+
|
89
|
+
default :codec, "plain"
|
90
|
+
|
91
|
+
# Name of the SQS Queue to pull messages from. Note that this is just the name of the queue, not the URL or ARN.
|
92
|
+
config :queue, :validate => :string, :required => true
|
93
|
+
|
94
|
+
# Whether to delete files from S3 after processing.
|
95
|
+
config :delete_on_success, :validate => :boolean, :default => false
|
96
|
+
|
97
|
+
attr_reader :poller
|
98
|
+
attr_reader :s3
|
99
|
+
|
100
|
+
def register
|
101
|
+
require "aws-sdk"
|
102
|
+
@logger.info("Registering SQS input", :queue => @queue)
|
103
|
+
setup_queue
|
104
|
+
end
|
105
|
+
|
106
|
+
def setup_queue
|
107
|
+
aws_sqs_client = Aws::SQS::Client.new(aws_options_hash)
|
108
|
+
queue_url = aws_sqs_client.get_queue_url(:queue_name => @queue)[:queue_url]
|
109
|
+
@poller = Aws::SQS::QueuePoller.new(queue_url, :client => aws_sqs_client)
|
110
|
+
@s3 = Aws::S3::Client.new(aws_options_hash)
|
111
|
+
rescue Aws::SQS::Errors::ServiceError => e
|
112
|
+
@logger.error("Cannot establish connection to Amazon SQS", :error => e)
|
113
|
+
raise LogStash::ConfigurationError, "Verify the SQS queue name and your credentials"
|
114
|
+
end
|
115
|
+
|
116
|
+
def polling_options
|
117
|
+
{
|
118
|
+
# we will query 1 message at a time, so we can ensure correct error handling if we can't download a single file correctly
|
119
|
+
# (we will throw :skip_delete if download size isn't correct to process the event again later
|
120
|
+
# -> set a reasonable "Default Visibility Timeout" for your queue, so that there's enough time to process the log files)
|
121
|
+
:max_number_of_messages => 1,
|
122
|
+
# we will use the queue's setting, a good value is 10 seconds
|
123
|
+
# (to ensure fast logstash shutdown on the one hand and few api calls on the other hand)
|
124
|
+
:wait_time_seconds => nil,
|
125
|
+
}
|
126
|
+
end
|
127
|
+
|
128
|
+
def handle_message(message, queue)
|
129
|
+
hash = JSON.parse message.body
|
130
|
+
# there may be test events sent from the s3 bucket which won't contain a Records array,
|
131
|
+
# we will skip those events and remove them from queue
|
132
|
+
if hash['Records'] then
|
133
|
+
# typically there will be only 1 record per event, but since it is an array we will
|
134
|
+
# treat it as if there could be more records
|
135
|
+
hash['Records'].each do |record|
|
136
|
+
# in case there are any events with Records that aren't s3 object-created events and can't therefore be
|
137
|
+
# processed by this plugin, we will skip them and remove them from queue
|
138
|
+
if record['eventSource'] == EVENT_SOURCE and record['eventName'].start_with?(EVENT_TYPE) then
|
139
|
+
bucket = record['s3']['bucket']['name']
|
140
|
+
key = record['s3']['object']['key']
|
141
|
+
|
142
|
+
# try download and :skip_delete if it fails
|
143
|
+
begin
|
144
|
+
response = @s3.get_object(
|
145
|
+
bucket: bucket,
|
146
|
+
key: key,
|
147
|
+
)
|
148
|
+
rescue => e
|
149
|
+
@logger.warn("issuing :skip_delete on failed download", :bucket => bucket, :object => key, :error => e)
|
150
|
+
throw :skip_delete
|
151
|
+
end
|
152
|
+
|
153
|
+
# verify downloaded content size
|
154
|
+
if response.content_length == record['s3']['object']['size'] then
|
155
|
+
body = response.body
|
156
|
+
# if necessary unzip
|
157
|
+
if response.content_encoding == "gzip" or record['s3']['object']['key'].end_with?(".gz") then
|
158
|
+
begin
|
159
|
+
temp = Zlib::GzipReader.new(body)
|
160
|
+
rescue => e
|
161
|
+
@logger.warn("content is marked to be gzipped but can't unzip it, assuming plain text", :bucket => bucket, :object => key, :error => e)
|
162
|
+
temp = body
|
163
|
+
end
|
164
|
+
body = temp
|
165
|
+
end
|
166
|
+
# process the plain text content
|
167
|
+
begin
|
168
|
+
lines = body.read.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: "\u2370").split(/\n/)
|
169
|
+
lines.each do |line|
|
170
|
+
@codec.decode(line) do |event|
|
171
|
+
decorate(event)
|
172
|
+
|
173
|
+
event.set('[@metadata][s3_bucket_name]', record['s3']['bucket']['name'])
|
174
|
+
event.set('[@metadata][s3_object_key]', record['s3']['object']['key'])
|
175
|
+
|
176
|
+
queue << event
|
177
|
+
end
|
178
|
+
end
|
179
|
+
rescue => e
|
180
|
+
@logger.warn("issuing :skip_delete on failed plain text processing", :bucket => bucket, :object => key, :error => e)
|
181
|
+
throw :skip_delete
|
182
|
+
end
|
183
|
+
|
184
|
+
# Delete the files from S3
|
185
|
+
begin
|
186
|
+
@s3.delete_object(bucket: bucket, key: key) if @delete_on_success
|
187
|
+
rescue => e
|
188
|
+
@logger.warn("Failed to delete S3 object", :bucket => bucket, :object => key, :error => e)
|
189
|
+
end
|
190
|
+
# otherwise try again later
|
191
|
+
else
|
192
|
+
@logger.warn("issuing :skip_delete on wrong download content size", :bucket => bucket, :object => key,
|
193
|
+
:download_size => response.content_length, :expected => record['s3']['object']['size'])
|
194
|
+
throw :skip_delete
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
def run(queue)
|
202
|
+
# ensure we can stop logstash correctly
|
203
|
+
poller.before_request do |stats|
|
204
|
+
if stop? then
|
205
|
+
@logger.warn("issuing :stop_polling on stop?", :queue => @queue)
|
206
|
+
# this can take up to "Receive Message Wait Time" (of the sqs queue) seconds to be recognized
|
207
|
+
throw :stop_polling
|
208
|
+
end
|
209
|
+
end
|
210
|
+
# poll a message and process it
|
211
|
+
run_with_backoff do
|
212
|
+
poller.poll(polling_options) do |message|
|
213
|
+
handle_message(message, queue)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
private
|
219
|
+
# Runs an AWS request inside a Ruby block with an exponential backoff in case
|
220
|
+
# we experience a ServiceError.
|
221
|
+
#
|
222
|
+
# @param [Integer] max_time maximum amount of time to sleep before giving up.
|
223
|
+
# @param [Integer] sleep_time the initial amount of time to sleep before retrying.
|
224
|
+
# @param [Block] block Ruby code block to execute.
|
225
|
+
def run_with_backoff(max_time = MAX_TIME_BEFORE_GIVING_UP, sleep_time = BACKOFF_SLEEP_TIME, &block)
|
226
|
+
next_sleep = sleep_time
|
227
|
+
begin
|
228
|
+
block.call
|
229
|
+
next_sleep = sleep_time
|
230
|
+
rescue Aws::SQS::Errors::ServiceError => e
|
231
|
+
@logger.warn("Aws::SQS::Errors::ServiceError ... retrying SQS request with exponential backoff", :queue => @queue, :sleep_time => sleep_time, :error => e)
|
232
|
+
sleep(next_sleep)
|
233
|
+
next_sleep = next_sleep > max_time ? sleep_time : sleep_time * BACKOFF_FACTOR
|
234
|
+
retry
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
end # class
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# This patch was stolen from logstash-plugins/logstash-output-s3#102.
|
2
|
+
#
|
3
|
+
# This patch is a workaround for a JRuby issue which has been fixed in JRuby
|
4
|
+
# 9000, but not in JRuby 1.7. See https://github.com/jruby/jruby/issues/3645
|
5
|
+
# and https://github.com/jruby/jruby/issues/3920. This is necessary because the
|
6
|
+
# `aws-sdk` is doing tricky name discovery to generate the correct error class.
|
7
|
+
#
|
8
|
+
# As per https://github.com/aws/aws-sdk-ruby/issues/1301#issuecomment-261115960,
|
9
|
+
# this patch may be short-lived anyway.
|
10
|
+
require 'aws-sdk'
|
11
|
+
|
12
|
+
begin
|
13
|
+
old_stderr = $stderr
|
14
|
+
$stderr = StringIO.new
|
15
|
+
|
16
|
+
module Aws
|
17
|
+
const_set(:S3, Aws::S3)
|
18
|
+
const_set(:SQS, Aws::SQS)
|
19
|
+
end
|
20
|
+
ensure
|
21
|
+
$stderr = old_stderr
|
22
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'logstash-input-aws-s3sqs'
|
3
|
+
s.version = '1.1.1'
|
4
|
+
s.licenses = ['Apache License (2.0)']
|
5
|
+
s.summary = "Get logs from AWS s3 buckets as issued by an object-created event via sqs."
|
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"
|
7
|
+
s.authors = ["Heiko Finzel"]
|
8
|
+
s.email = 'hfi@boreus.de'
|
9
|
+
s.homepage = "https://www.boreus.de"
|
10
|
+
s.require_paths = ["lib"]
|
11
|
+
|
12
|
+
# Files
|
13
|
+
s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
|
14
|
+
|
15
|
+
# Tests
|
16
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
17
|
+
|
18
|
+
# Special flag to let us know this is actually a logstash plugin
|
19
|
+
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
|
20
|
+
|
21
|
+
# Gem dependencies
|
22
|
+
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
23
|
+
|
24
|
+
s.add_runtime_dependency 'logstash-codec-json'
|
25
|
+
s.add_runtime_dependency "logstash-mixin-aws", ">= 1.0.0"
|
26
|
+
|
27
|
+
s.add_development_dependency 'logstash-devutils'
|
28
|
+
end
|
29
|
+
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: logstash-input-aws-s3sqs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Heiko Finzel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - '>='
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.60'
|
19
|
+
- - <=
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.99'
|
22
|
+
name: logstash-core-plugin-api
|
23
|
+
prerelease: false
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.60'
|
30
|
+
- - <=
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.99'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
name: logstash-codec-json
|
40
|
+
prerelease: false
|
41
|
+
type: :runtime
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.0.0
|
53
|
+
name: logstash-mixin-aws
|
54
|
+
prerelease: false
|
55
|
+
type: :runtime
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.0.0
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
name: logstash-devutils
|
68
|
+
prerelease: false
|
69
|
+
type: :development
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
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
|
76
|
+
email: hfi@boreus.de
|
77
|
+
executables: []
|
78
|
+
extensions: []
|
79
|
+
extra_rdoc_files: []
|
80
|
+
files:
|
81
|
+
- CHANGELOG.md
|
82
|
+
- CONTRIBUTORS
|
83
|
+
- Gemfile
|
84
|
+
- LICENSE
|
85
|
+
- NOTICE.TXT
|
86
|
+
- README.md
|
87
|
+
- lib/logstash/inputs/s3sqs.rb
|
88
|
+
- lib/logstash/inputs/s3sqs/patch.rb
|
89
|
+
- logstash-input-aws-s3sqs.gemspec
|
90
|
+
- spec/inputs/s3sqs_spec.rb
|
91
|
+
- spec/spec_helper.rb
|
92
|
+
homepage: https://www.boreus.de
|
93
|
+
licenses:
|
94
|
+
- Apache License (2.0)
|
95
|
+
metadata:
|
96
|
+
logstash_plugin: 'true'
|
97
|
+
logstash_group: input
|
98
|
+
post_install_message:
|
99
|
+
rdoc_options: []
|
100
|
+
require_paths:
|
101
|
+
- lib
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
requirements: []
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 2.4.5
|
115
|
+
signing_key:
|
116
|
+
specification_version: 4
|
117
|
+
summary: Get logs from AWS s3 buckets as issued by an object-created event via sqs.
|
118
|
+
test_files:
|
119
|
+
- spec/inputs/s3sqs_spec.rb
|
120
|
+
- spec/spec_helper.rb
|