logstash-output-elasticsearch_java 2.1.1.beta1 → 2.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cebb6798c2db7392cf7a8a7957e37b7290306d5
4
- data.tar.gz: ad5f55d2a1b7de142b35c7b69262f7d501867b0f
3
+ metadata.gz: a7fc242ad8da3333681f40d206e87c3f74357553
4
+ data.tar.gz: 94def1258bb5cfec862cbf2dd9ed2d8d1dcd910a
5
5
  SHA512:
6
- metadata.gz: 220a4b40f8bf0294b3e2ecdba3d7647fa72fbb1e1f0d7e0ecf22ad27c823aefeef3dd584227193e0e24781b881a4545227c70691f458bcecc695aafc47d63740
7
- data.tar.gz: b7db119540b418fb3602be6e86909eb4675cc340e56b546bd2b4e8bfa22b0c61f9ec7cdbe42b65a3a1b243b6d271c3402e15805dea1cc2d7d3bc3bb1e679f1c6
6
+ metadata.gz: 5f49f95de95d4b5c3d88797975646d9e55498c9215976ab3886bd3f065bb2c9619dbb555f755f6ca58d42b4d13ce79608b654e771abc13884a4ff34ea73d30c2
7
+ data.tar.gz: 91f2e994c7d181d9fdbea8f61af61dee862ed38fe3f664346d16af48fd0b5c1ecb03fdfe33f3557a92d906100c1187cd9b6fa23f0f994793337776e0108db6af
data/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  [![Build
4
4
  Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-elasticsearch_java-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-elasticsearch_java-unit/)
5
5
 
6
+ [![Build Status](https://travis-ci.org/logstash-plugins/logstash-output-elasticsearch_java.svg)](https://travis-ci.org/logstash-plugins/logstash-output-elasticsearch_java)
7
+
6
8
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
9
 
8
10
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
@@ -6,6 +6,7 @@ require 'logstash/outputs/elasticsearch_java'
6
6
  module LogStash module Outputs module ElasticSearchJavaPlugins module Protocols
7
7
  DEFAULT_OPTIONS = {
8
8
  :port => 9300,
9
+ :elasticsearch_plugins => []
9
10
  }
10
11
 
11
12
  class NodeClient
@@ -206,10 +207,10 @@ module LogStash module Outputs module ElasticSearchJavaPlugins module Protocols
206
207
  class TransportClient < NodeClient
207
208
  private
208
209
  def make_client
209
- client = org.elasticsearch.client.transport.TransportClient.
210
- builder().
211
- settings((settings.build)).
212
- build()
210
+ builder = org.elasticsearch.client.transport.TransportClient.builder()
211
+ client = client_options[:elasticsearch_plugins].reduce(builder) do |b,plugin_class|
212
+ b.add_plugin(plugin_class)
213
+ end.settings((settings.build)).build()
213
214
 
214
215
  client_options[:hosts].each do |host|
215
216
  matches = host.match /([^:+]+)(:(\d+))?/
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-elasticsearch_java'
3
- s.version = '2.1.1.beta1'
3
+ s.version = '2.1.1'
4
4
  s.licenses = ['apache-2.0']
5
5
  s.summary = "Logstash Output to Elasticsearch using Java node/transport client"
6
6
  s.description = "Output events to elasticsearch using the java client"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-elasticsearch_java
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1.beta1
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-26 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -253,9 +253,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  requirements:
256
- - - ">"
256
+ - - ">="
257
257
  - !ruby/object:Gem::Version
258
- version: 1.3.1
258
+ version: '0'
259
259
  requirements: []
260
260
  rubyforge_project:
261
261
  rubygems_version: 2.4.8