Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cdd88fe322 | ||
|
|
e74d67b477 | ||
|
|
710791c3aa | ||
|
|
ccb30c7edd |
@@ -1,6 +1,13 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
All notable changes to this project will be documented in this file, from 0.2.0.
|
All notable changes to this project will be documented in this file, from 0.2.0.
|
||||||
|
|
||||||
|
## [5.2.1] - 2017-04-09
|
||||||
|
- Adds Array and Hash to_json support for non-sprintf syntax
|
||||||
|
|
||||||
|
## [5.2.0] - 2017-04-01
|
||||||
|
- Upgrades HikariCP to latest
|
||||||
|
- Fixes HikariCP logging integration issues
|
||||||
|
|
||||||
## [5.1.0] - 2016-12-17
|
## [5.1.0] - 2016-12-17
|
||||||
- phoenix-thin fixes for issue #60
|
- phoenix-thin fixes for issue #60
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ require 'concurrent'
|
|||||||
require 'stud/interval'
|
require 'stud/interval'
|
||||||
require 'java'
|
require 'java'
|
||||||
require 'logstash-output-jdbc_jars'
|
require 'logstash-output-jdbc_jars'
|
||||||
|
require 'json'
|
||||||
|
|
||||||
# Write events to a SQL engine, using JDBC.
|
# Write events to a SQL engine, using JDBC.
|
||||||
#
|
#
|
||||||
@@ -293,6 +294,8 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
|
|||||||
statement.setFloat(idx + 1, value)
|
statement.setFloat(idx + 1, value)
|
||||||
when String
|
when String
|
||||||
statement.setString(idx + 1, value)
|
statement.setString(idx + 1, value)
|
||||||
|
when Array, Hash
|
||||||
|
statement.setString(idx + 1, value.to_json)
|
||||||
when true, false
|
when true, false
|
||||||
statement.setBoolean(idx + 1, value)
|
statement.setBoolean(idx + 1, value)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'logstash-output-jdbc'
|
s.name = 'logstash-output-jdbc'
|
||||||
s.version = '5.1.0'
|
s.version = '5.2.0'
|
||||||
s.licenses = ['Apache License (2.0)']
|
s.licenses = ['Apache License (2.0)']
|
||||||
s.summary = 'This plugin allows you to output to SQL, via JDBC'
|
s.summary = 'This plugin allows you to output to SQL, via JDBC'
|
||||||
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 'logstash-output-jdbc'. This gem is not a stand-alone program"
|
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 'logstash-output-jdbc'. This gem is not a stand-alone program"
|
||||||
@@ -22,12 +22,12 @@ Gem::Specification.new do |s|
|
|||||||
s.metadata = { 'logstash_plugin' => 'true', 'logstash_group' => 'output' }
|
s.metadata = { 'logstash_plugin' => 'true', 'logstash_group' => 'output' }
|
||||||
|
|
||||||
# Gem dependencies
|
# Gem dependencies
|
||||||
s.add_runtime_dependency 'logstash-core-plugin-api', '>= 1.60', '<= 2.99'
|
s.add_runtime_dependency 'logstash-core-plugin-api', '~> 2'
|
||||||
s.add_runtime_dependency 'stud'
|
s.add_runtime_dependency 'stud'
|
||||||
s.add_runtime_dependency 'logstash-codec-plain'
|
s.add_runtime_dependency 'logstash-codec-plain'
|
||||||
|
|
||||||
s.requirements << "jar 'com.zaxxer:HikariCP', '2.4.7'"
|
s.requirements << "jar 'com.zaxxer:HikariCP', '2.6.1'"
|
||||||
s.requirements << "jar 'org.slf4j:slf4j-log4j12', '1.7.21'"
|
s.requirements << "jar 'org.apache.logging.log4j:log4j-slf4j-impl', '2.6.2'"
|
||||||
|
|
||||||
s.add_development_dependency 'jar-dependencies'
|
s.add_development_dependency 'jar-dependencies'
|
||||||
s.add_development_dependency 'ruby-maven', '~> 3.3'
|
s.add_development_dependency 'ruby-maven', '~> 3.3'
|
||||||
|
|||||||
Reference in New Issue
Block a user