logstash-input-mysql 0.1.1 → 1.0.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/mysql.rb +2 -1
- data/logstash-input-mysql.gemspec +2 -2
- data/spec/integration/mysql_spec.rb +4 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf8aea59f78ef2716c63f9879ec106f98d796aff
|
4
|
+
data.tar.gz: cdeb14e332840f557e7752008018764fe23ec5ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bef3763db808f1d0265b32e434de8db87f7439618e56ee015377d04dc516b3092c96ca18c76ee8adc685cea3b0fde03a0f8ad80ea19293d413c7fd27a2a760e
|
7
|
+
data.tar.gz: 012cac8f3581102bc9b23897a03bcec14202549ab9b75a7db3b7a612d3b9bccfb245800710694de6a0bc6a74c018a8966235721f52998f1328c2739c49799861
|
@@ -33,7 +33,8 @@ class LogStash::Inputs::Mysql < LogStash::Inputs::Base
|
|
33
33
|
"jdbc_password" => @password,
|
34
34
|
"statement" => @statement,
|
35
35
|
"parameters" => @parameters,
|
36
|
-
"schedule" => @schedule
|
36
|
+
"schedule" => @schedule,
|
37
|
+
"jdbc_validate_connection" => true
|
37
38
|
})
|
38
39
|
|
39
40
|
@jdbc_plugin.register
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-mysql'
|
3
|
-
s.version = '0.
|
3
|
+
s.version = '1.0.0'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This example input streams a string at a definable interval."
|
6
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"
|
@@ -23,5 +23,5 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_runtime_dependency 'logstash-input-jdbc'
|
24
24
|
|
25
25
|
s.add_development_dependency 'logstash-devutils'
|
26
|
-
s.add_development_dependency '
|
26
|
+
s.add_development_dependency 'torquay'
|
27
27
|
end
|
@@ -3,17 +3,18 @@ require "logstash/plugin"
|
|
3
3
|
require "jdbc/mysql"
|
4
4
|
require "sequel"
|
5
5
|
require "sequel/adapters/jdbc"
|
6
|
-
require "
|
6
|
+
require "torquay"
|
7
7
|
|
8
8
|
describe "tests" do
|
9
9
|
it "hello_world" do
|
10
|
-
@docker =
|
10
|
+
@docker = Torquay.new
|
11
11
|
@docker.provision("ls-mysql", "spec/integration/docker/Dockerfile")
|
12
12
|
@db = {
|
13
13
|
:host => @docker.host[:host_ip],
|
14
14
|
:port => @docker.host[:ports]['3306/tcp'][0]['HostPort']
|
15
15
|
}
|
16
|
-
|
16
|
+
|
17
|
+
sleep 10
|
17
18
|
|
18
19
|
Jdbc::MySQL.load_driver
|
19
20
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jdbc-mysql
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
prerelease: false
|
54
54
|
type: :development
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: torquay
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '>='
|