logstash-integration-jdbc 5.4.8 → 5.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/docs/input-jdbc.asciidoc +23 -0
- data/lib/logstash-integration-jdbc_jars.rb +2 -0
- data/logstash-integration-jdbc.gemspec +1 -2
- data/spec/filters/jdbc_streaming_spec.rb +0 -3
- data/spec/inputs/jdbc_spec.rb +13 -3
- data/vendor/jar-dependencies/org/apache/derby/derby/10.15.2.1/derby-10.15.2.1.jar +0 -0
- data/vendor/jar-dependencies/org/apache/derby/derbyclient/10.15.2.1/derbyclient-10.15.2.1.jar +0 -0
- data/vendor/jar-dependencies/org/apache/derby/derbyshared/10.15.2.1/derbyshared-10.15.2.1.jar +0 -0
- data/vendor/jar-dependencies/org/apache/derby/derbytools/10.15.2.1/derbytools-10.15.2.1.jar +0 -0
- metadata +4 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b3c2ba844927de3fe8fd1ea8a23fe09af8da74835eb8c87a83e4de9f67b3d21
|
4
|
+
data.tar.gz: 401acb665aacbf8e9f75b6d5092985998d766217619fcc2d26c7d078f0d4f82f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c68b79a3bdb9d0529dbff7b1c0e80dcd0e840d57f6c760c056fbbd5525be295bfedb8ddf7b2450ab125eee14c039cf61a7ea38aca81e597a98ea815b51955bab
|
7
|
+
data.tar.gz: eb872090eb0dfc7bb073aa8c3f992679ecfcb66979c2de6f6838ff17f6acc297d82140cb60ef71a55dc910ad17c9ecab921e62e9d899a4943949ba3003b38a7a
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 5.4.10
|
2
|
+
- Adds retry mechanism when checkout Derby from SVN repository [#158](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/158)
|
3
|
+
- [DOC] add known limitations and settings for connection issue [#167](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/167)
|
4
|
+
|
5
|
+
## 5.4.9
|
6
|
+
- Fix Derby missed driver classes when built locally for version 10.15 [#160](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/160)
|
7
|
+
|
1
8
|
## 5.4.8
|
2
9
|
- Update Derby with locally built 10.15.2.1 version [#155](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/155)
|
3
10
|
|
data/docs/input-jdbc.asciidoc
CHANGED
@@ -176,6 +176,29 @@ input {
|
|
176
176
|
}
|
177
177
|
---------------------------------------------------------------------------------------------------
|
178
178
|
|
179
|
+
==== Database-specific considerations
|
180
|
+
|
181
|
+
The JDBC input plugin leverages the https://github.com/jeremyevans/sequel[sequel] library to query databases through their JDBC drivers.
|
182
|
+
The implementation of drivers will vary, however, potentially leading to unexpected behavior.
|
183
|
+
|
184
|
+
===== Unable to reuse connections
|
185
|
+
|
186
|
+
Some databases - such as Sybase or SQL Anywhere - may have issues with stale connections, timing out between scheduled runs and never reconnecting.
|
187
|
+
|
188
|
+
To ensure connections are valid before queries are executed, enable <<plugins-{type}s-{plugin}-jdbc_validate_connection>> and set <<plugins-{type}s-{plugin}-jdbc_validation_timeout>> to a shorter interval than the <<plugins-{type}s-{plugin}-schedule>>.
|
189
|
+
|
190
|
+
[source,ruby]
|
191
|
+
---------------------------------------------------------------------------------------------------
|
192
|
+
input {
|
193
|
+
jdbc {
|
194
|
+
schedule => "* * * * *" # run every minute
|
195
|
+
jdbc_validate_connection => true
|
196
|
+
jdbc_validation_timeout => 50 # 50 seconds
|
197
|
+
}
|
198
|
+
}
|
199
|
+
---------------------------------------------------------------------------------------------------
|
200
|
+
|
201
|
+
|
179
202
|
|
180
203
|
[id="plugins-{type}s-{plugin}-options"]
|
181
204
|
==== Jdbc Input Configuration Options
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-integration-jdbc'
|
3
|
-
s.version = '5.4.
|
3
|
+
s.version = '5.4.10'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Integration with JDBC - input and filter plugins"
|
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"
|
@@ -45,5 +45,4 @@ Gem::Specification.new do |s|
|
|
45
45
|
s.add_development_dependency "childprocess"
|
46
46
|
s.add_development_dependency 'logstash-devutils', '>= 2.3'
|
47
47
|
s.add_development_dependency 'timecop'
|
48
|
-
s.add_development_dependency 'jdbc-derby'
|
49
48
|
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require "logstash/devutils/rspec/spec_helper"
|
2
2
|
require "logstash/devutils/rspec/shared_examples"
|
3
3
|
require "logstash/filters/jdbc_streaming"
|
4
|
-
require 'jdbc/derby'
|
5
4
|
require "sequel"
|
6
5
|
require "sequel/adapters/jdbc"
|
7
6
|
|
@@ -13,8 +12,6 @@ module LogStash module Filters
|
|
13
12
|
describe JdbcStreaming do
|
14
13
|
let!(:jdbc_connection_string) { "jdbc:derby:memory:jdbc_streaming_testdb;create=true"}
|
15
14
|
#Use embedded Derby for tests
|
16
|
-
::Jdbc::Derby.load_driver
|
17
|
-
|
18
15
|
ENV["TZ"] = "Etc/UTC"
|
19
16
|
describe "plugin level execution" do
|
20
17
|
let(:mixin_settings) do
|
data/spec/inputs/jdbc_spec.rb
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
require "logstash/devutils/rspec/spec_helper"
|
3
3
|
require "logstash/devutils/rspec/shared_examples"
|
4
4
|
require "logstash/inputs/jdbc"
|
5
|
-
require "jdbc/derby"
|
6
5
|
require "sequel"
|
7
6
|
require "sequel/adapters/jdbc"
|
8
7
|
require "timecop"
|
@@ -33,7 +32,6 @@ describe LogStash::Inputs::Jdbc do
|
|
33
32
|
before :each do
|
34
33
|
if !RSpec.current_example.metadata[:no_connection]
|
35
34
|
# before body
|
36
|
-
Jdbc::Derby.load_driver
|
37
35
|
db.create_table :test_table do
|
38
36
|
DateTime :created_at
|
39
37
|
BigDecimal :big_num
|
@@ -1587,9 +1585,21 @@ describe LogStash::Inputs::Jdbc do
|
|
1587
1585
|
end
|
1588
1586
|
end
|
1589
1587
|
|
1588
|
+
def load_derby_version
|
1589
|
+
version = {}
|
1590
|
+
derby_version = File.join(Dir.pwd, 'derby_version.txt')
|
1591
|
+
File.readlines(derby_version, chomp: true).each do |line|
|
1592
|
+
key = line.split('=')[0]
|
1593
|
+
value = line.split('=')[1]
|
1594
|
+
version[key] = value
|
1595
|
+
end
|
1596
|
+
version
|
1597
|
+
end
|
1598
|
+
|
1590
1599
|
context "when an unreadable jdbc_driver_path entry is present" do
|
1591
1600
|
let(:driver_jar_path) do
|
1592
|
-
|
1601
|
+
derby_version = load_derby_version()['DERBY_VERSION']
|
1602
|
+
jar_file = $CLASSPATH.find { |name| name.index("derby-#{derby_version}.jar") }
|
1593
1603
|
raise "derby jar not found on class-path" unless jar_file
|
1594
1604
|
jar_file.sub('file:', '')
|
1595
1605
|
end
|
Binary file
|
data/vendor/jar-dependencies/org/apache/derby/derbyclient/10.15.2.1/derbyclient-10.15.2.1.jar
CHANGED
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-integration-jdbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.4.
|
4
|
+
version: 5.4.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,20 +226,6 @@ dependencies:
|
|
226
226
|
- - ">="
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: '0'
|
229
|
-
- !ruby/object:Gem::Dependency
|
230
|
-
requirement: !ruby/object:Gem::Requirement
|
231
|
-
requirements:
|
232
|
-
- - ">="
|
233
|
-
- !ruby/object:Gem::Version
|
234
|
-
version: '0'
|
235
|
-
name: jdbc-derby
|
236
|
-
prerelease: false
|
237
|
-
type: :development
|
238
|
-
version_requirements: !ruby/object:Gem::Requirement
|
239
|
-
requirements:
|
240
|
-
- - ">="
|
241
|
-
- !ruby/object:Gem::Version
|
242
|
-
version: '0'
|
243
229
|
description: This gem is a Logstash plugin required to be installed on top of the
|
244
230
|
Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
|
245
231
|
gem is not a stand-alone program
|
@@ -311,6 +297,8 @@ files:
|
|
311
297
|
- spec/plugin_mixins/jdbc_streaming/parameter_handler_spec.rb
|
312
298
|
- vendor/jar-dependencies/org/apache/derby/derby/10.15.2.1/derby-10.15.2.1.jar
|
313
299
|
- vendor/jar-dependencies/org/apache/derby/derbyclient/10.15.2.1/derbyclient-10.15.2.1.jar
|
300
|
+
- vendor/jar-dependencies/org/apache/derby/derbyshared/10.15.2.1/derbyshared-10.15.2.1.jar
|
301
|
+
- vendor/jar-dependencies/org/apache/derby/derbytools/10.15.2.1/derbytools-10.15.2.1.jar
|
314
302
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
315
303
|
licenses:
|
316
304
|
- Apache License (2.0)
|