diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dca56c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.gem +Gemfile.lock +Gemfile.bak +.bundle +vendor diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..851fabc --- /dev/null +++ b/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gemspec diff --git a/README.md b/README.md index 52ace1d..e4b58d0 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,11 @@ JDBC output plugin for Logstash. This plugin is provided as an external plugin and is not part of the Logstash project. -Currently untested with logstash 1.5+. Support is planned. - ## Warning +The master branch is for 1.5, is currently incomplete and should NOT be used (yet). + +Please see the v1.4 branch for v1.4 of Logstash. + This has not yet been extensively tested with all JDBC drivers and may not yet work for you. ## Installation diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..d50e796 --- /dev/null +++ b/Rakefile @@ -0,0 +1 @@ +require "logstash/devutils/rake" diff --git a/logstash-output-jdbc.gemspec b/logstash-output-jdbc.gemspec new file mode 100644 index 0000000..fc43623 --- /dev/null +++ b/logstash-output-jdbc.gemspec @@ -0,0 +1,24 @@ +Gem::Specification.new do |s| + s.name = 'logstash-output-jdbc' + s.version = "0.1.0" + s.licenses = [ "Apache License (2.0)" ] + 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/plugin install gemname. This gem is not a stand-alone program" + s.authors = ["the_angry_angel"] + s.email = "karl+github@theangryangel.co.uk" + s.homepage = "https://github.com/theangryangel/logstash-output-jdbc" + s.require_paths = [ "lib" ] + + # Files + s.files = `git ls-files`.split($\) + # Tests + s.test_files = s.files.grep(%r{^(test|spec|features)/}) + + # Special flag to let us know this is actually a logstash plugin + s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" } + + # Gem dependencies + s.add_runtime_dependency "logstash-core", ">= 1.4.0", "< 2.0.0" + s.add_runtime_dependency "logstash-codec-plain" + s.add_development_dependency "logstash-devutils" +end