logstash-input-rds 0.11.1 → 0.12.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: c32b21747a2c1c7582787aafc176ba9bf6d33cf7158edb00c539345a111e01dd
4
- data.tar.gz: 55cc7f2d922c6b30e760a68164653c4410415395da05555013712bb82d4e25bf
3
+ metadata.gz: 0eb906274ef538aefb2a0320105f0b139e68c8717e029d4706bdfddffea49327
4
+ data.tar.gz: 4c574c9d9415a881be6b032289a8faf1bfdabf2734b7ba424f9f58658a3e2aa4
5
5
  SHA512:
6
- metadata.gz: 8c453f74873f2a430d8bae71e9f4337e0e388beb4256354dfa30d925a3d8de8e5e3d9957a39d202a5d8611dcdb0d666e2881f6ecf0f95740553d65d1d45584a3
7
- data.tar.gz: 1a5fe726dd1c9f1bacdf631f8b7741f70c171d93595820c453c0e5d26e589a48b69783541ed8904c06ed484d83d6a880fad53020bb9c4b441e69f8f3dbf3cdd8
6
+ metadata.gz: 1b27244d3bec3dc294d8b172fca23fba6e2eb45f76f149f5b3c0669c6b306f29a551047042f05e058dc9c14bd86fcc7edee124c4a6c2ec627c5682fb358dcaeb
7
+ data.tar.gz: a68e10f99456d3b4b716109fa1d6072fc29072e631a72cc33170415ad35a133cc3b6d5601cf7d56e9debc569ef91d3b6f01234f1db15962cb314e0fb9a4797f2
@@ -20,14 +20,14 @@ class LogStash::Inputs::Rds < LogStash::Inputs::Base
20
20
 
21
21
  def register
22
22
  require "aws-sdk"
23
- @logger.info "Registering RDS input", :instance_name => @instance_name
23
+ @logger.info "Registering RDS input", :region => @region, :instance => @instance_name, :log_file => @log_file_name
24
24
  @database = Aws::RDS::DBInstance.new @instance_name, aws_options_hash
25
25
  @sincedate = filename2datetime "1999-01-01-01" # FIXME sincedb
26
26
  end
27
27
 
28
28
  def run(queue)
29
29
  Stud.interval(@polling_frequency) do
30
- @logger.info "finding files starting #{@sincedate} (#{@sincedate.to_i * 1000})"
30
+ @logger.debug "finding files starting #{@sincedate} (#{@sincedate.to_i * 1000})"
31
31
 
32
32
  logfiles = @database.log_files({
33
33
  filename_contains: @log_file_name,
@@ -42,6 +42,7 @@ class LogStash::Inputs::Rds < LogStash::Inputs::Base
42
42
  response = logfile.download({marker: marker})
43
43
  response[:log_file_data].lines.each do |line|
44
44
  @codec.decode(line) do |event|
45
+ decorate event
45
46
  event.set "rds-instance", @instance_name
46
47
  event.set "log-file", @log_file_name
47
48
  queue << event
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-rds'
3
- s.version = '0.11.1'
3
+ s.version = '0.12.0'
4
4
  s.summary = 'Stream events from RDS 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.11.1
4
+ version: 0.12.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: 2017-12-07 00:00:00.000000000 Z
11
+ date: 2017-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement