logstash-input-jdbc 4.3.9 → 4.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/logstash/inputs/jdbc.rb +7 -4
- data/logstash-input-jdbc.gemspec +2 -2
- data/spec/inputs/jdbc_spec.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9e1072279ad555d69710d66bc23f5d6af1d5492998c6a2a30edb8dea03bb402
|
4
|
+
data.tar.gz: 03ca8379b772ef0a4b5d8693fbcee2adbe3c2226922f19e38c2f70e0b02d573e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 151670dbc5de220c1c68eef6b723a2c49a1fa93f19efe97a6286c0968309ea53bb57be19e0a46a359c094ce6ce8a69a3cc78213f9884f67fec6477622bc70c94
|
7
|
+
data.tar.gz: 19929d6d094038af8405cb019de5032cc470ab312ffe3e495f47c193ee066f87fd9fdae7dcb79f8fd6b1a0fc27db1450e876bce8b0437c9e35706059d726b8dd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 4.3.11
|
2
|
+
- Fixed crash that occurs when receiving string input that cannot be coerced to UTF-8 (such as BLOB data) [#291](https://github.com/logstash-plugins/logstash-input-jdbc/pull/291)
|
3
|
+
|
4
|
+
## 4.3.10
|
5
|
+
- [#284](https://github.com/logstash-plugins/logstash-input-jdbc/pull/284) Swap out mysql for postgresql for testing
|
6
|
+
|
1
7
|
## 4.3.9
|
2
8
|
- Docs: Set the default_codec doc attribute.
|
3
9
|
|
data/lib/logstash/inputs/jdbc.rb
CHANGED
@@ -230,11 +230,14 @@ class LogStash::Inputs::Jdbc < LogStash::Inputs::Base
|
|
230
230
|
@jdbc_password = LogStash::Util::Password.new(File.read(@jdbc_password_filepath).strip) if @jdbc_password_filepath
|
231
231
|
|
232
232
|
if enable_encoding?
|
233
|
-
|
234
|
-
@
|
235
|
-
|
233
|
+
encodings = @columns_charset.values
|
234
|
+
encodings << @charset if @charset
|
235
|
+
|
236
|
+
@converters = encodings.each_with_object({}) do |encoding, converters|
|
237
|
+
converter = LogStash::Util::Charset.new(encoding)
|
238
|
+
converter.logger = self.logger
|
239
|
+
converters[encoding] = converter
|
236
240
|
end
|
237
|
-
@converters[@charset] = LogStash::Util::Charset.new(@charset) if @charset
|
238
241
|
end
|
239
242
|
end # def register
|
240
243
|
|
data/logstash-input-jdbc.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-jdbc'
|
3
|
-
s.version = '4.3.
|
3
|
+
s.version = '4.3.11'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Creates events from JDBC data"
|
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/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -28,5 +28,5 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_development_dependency 'logstash-devutils'
|
29
29
|
s.add_development_dependency 'timecop'
|
30
30
|
s.add_development_dependency 'jdbc-derby'
|
31
|
-
s.add_development_dependency 'jdbc-
|
31
|
+
s.add_development_dependency 'jdbc-postgres'
|
32
32
|
end
|
data/spec/inputs/jdbc_spec.rb
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
require "logstash/devutils/rspec/spec_helper"
|
3
3
|
require "logstash/inputs/jdbc"
|
4
4
|
require "jdbc/derby"
|
5
|
-
require
|
6
|
-
Jdbc::
|
5
|
+
require 'jdbc/postgres'
|
6
|
+
Jdbc::Postgres.load_driver
|
7
7
|
require "sequel"
|
8
8
|
require "sequel/adapters/jdbc"
|
9
9
|
require "timecop"
|
@@ -99,8 +99,8 @@ describe LogStash::Inputs::Jdbc do
|
|
99
99
|
context "when connecting to a non-existent server", :no_connection => true do
|
100
100
|
let(:mixin_settings) do
|
101
101
|
super.merge(
|
102
|
-
"jdbc_driver_class" => "
|
103
|
-
"jdbc_connection_string" => "jdbc:
|
102
|
+
"jdbc_driver_class" => "org.postgresql.Driver",
|
103
|
+
"jdbc_connection_string" => "jdbc:postgresql://localhost:65000/somedb"
|
104
104
|
)
|
105
105
|
end
|
106
106
|
let(:settings) { super.merge("statement" => "SELECT 1 as col1 FROM test_table", "jdbc_user" => "foo", "jdbc_password" => "bar") }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-jdbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,7 +148,7 @@ dependencies:
|
|
148
148
|
- - ">="
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
|
-
name: jdbc-
|
151
|
+
name: jdbc-postgres
|
152
152
|
prerelease: false
|
153
153
|
type: :development
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
199
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.6.
|
200
|
+
rubygems_version: 2.6.13
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Creates events from JDBC data
|