logstash-input-rds 0.15.3 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/rds.rb +4 -2
- data/logstash-input-rds.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: 375e1a8b9febeda8d5890d9880b80becb321c614824791cf41ac894ca3747ddd
|
4
|
+
data.tar.gz: 15da4d524aab4e325dbadd866bbb10fb3acadb8ac39b354dfeff34575d433a78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a55b75fe4e7c56485e87b4f83b94bbb83e23a9ad0e2e7b4425c91278f1a50ad755f51ac0397486c966f160cc967a6c7f38ff266a8eaa9af2a7002b422832a1fa
|
7
|
+
data.tar.gz: b20b154069aa93fb27e90e55dbdd5dd3a7fb6553740aac3427bef316b24ed4a4af496d5f0cc3c89fdbe6008a1191f7c46519b41b00c3cba965942710090fc5bb
|
data/lib/logstash/inputs/rds.rb
CHANGED
@@ -19,12 +19,14 @@ class LogStash::Inputs::Rds < LogStash::Inputs::Base
|
|
19
19
|
config :instance_name, :validate => :string, :required => true
|
20
20
|
config :log_file_name, :validate => :string, :required => true
|
21
21
|
config :polling_frequency, :validate => :number, :default => 600
|
22
|
+
config :sincedb_path, :validate => :string, :default => nil
|
22
23
|
|
23
24
|
def register
|
24
|
-
require "aws-sdk"
|
25
25
|
@logger.info "Registering RDS input", :region => @region, :instance => @instance_name, :log_file => @log_file_name
|
26
26
|
@database = Aws::RDS::DBInstance.new @instance_name, aws_options_hash
|
27
|
-
|
27
|
+
|
28
|
+
path = @sincedb_path || File.join(ENV["HOME"], ".sincedb_" + Digest::MD5.hexdigest("#{@instance_name}+#{@log_file_name}"))
|
29
|
+
@sincedb = SinceDB::File.new path
|
28
30
|
end
|
29
31
|
|
30
32
|
def run(queue)
|
data/logstash-input-rds.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-rds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Schleifer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|