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 +4 -4
- data/lib/logstash/inputs/rds.rb +3 -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: 0eb906274ef538aefb2a0320105f0b139e68c8717e029d4706bdfddffea49327
|
4
|
+
data.tar.gz: 4c574c9d9415a881be6b032289a8faf1bfdabf2734b7ba424f9f58658a3e2aa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b27244d3bec3dc294d8b172fca23fba6e2eb45f76f149f5b3c0669c6b306f29a551047042f05e058dc9c14bd86fcc7edee124c4a6c2ec627c5682fb358dcaeb
|
7
|
+
data.tar.gz: a68e10f99456d3b4b716109fa1d6072fc29072e631a72cc33170415ad35a133cc3b6d5601cf7d56e9debc569ef91d3b6f01234f1db15962cb314e0fb9a4797f2
|
data/lib/logstash/inputs/rds.rb
CHANGED
@@ -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 => @
|
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.
|
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
|
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.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-
|
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
|