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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21b636c4ee0b10aa4ba8604582f679bdbea13fbcdb76f2797f955a149aa8f679
4
- data.tar.gz: 261eabddfcc67888ae3481343fb7b328f22e2ce524a1e69c2f288ca09927c2e7
3
+ metadata.gz: 375e1a8b9febeda8d5890d9880b80becb321c614824791cf41ac894ca3747ddd
4
+ data.tar.gz: 15da4d524aab4e325dbadd866bbb10fb3acadb8ac39b354dfeff34575d433a78
5
5
  SHA512:
6
- metadata.gz: 97bc0193ca76a26fdecc8ba24c7f1b765cce2634907e14d473f493cfdde86ba6708054619b5a62ad217d59999a650f3b37014f08717aaff7ec195ba7ffb41a9e
7
- data.tar.gz: c3850b786f6b44e1a3cbf797bb78983eee76c80976884d3169e9702abde6007d381e85776d1158c192e0940bc020a90aceff5467893f35a9dd12a7e241988001
6
+ metadata.gz: a55b75fe4e7c56485e87b4f83b94bbb83e23a9ad0e2e7b4425c91278f1a50ad755f51ac0397486c966f160cc967a6c7f38ff266a8eaa9af2a7002b422832a1fa
7
+ data.tar.gz: b20b154069aa93fb27e90e55dbdd5dd3a7fb6553740aac3427bef316b24ed4a4af496d5f0cc3c89fdbe6008a1191f7c46519b41b00c3cba965942710090fc5bb
@@ -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
- @sincedb = SinceDB::File.new File.join(ENV["HOME"], ".sincedb_" + Digest::MD5.hexdigest("#{@instance_name}+#{@log_file_name}"))
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)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-rds'
3
- s.version = '0.15.3'
3
+ s.version = '0.16.0'
4
4
  s.summary = 'Ingest RDS log files to Logstash'
5
5
 
6
6
  s.authors = ['Andrew Schleifer']
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.15.3
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-02 00:00:00.000000000 Z
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