logstash-output-elasticsearch 1.0.0-java → 1.0.1-java
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0373b6049087752b171319e0676b8f39c74a985f
|
4
|
+
data.tar.gz: e7354caf71f405678eabede5040c444bfac29c7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9308c2ef370c543edc5f8f82b68e1b51b815c2b5c71e1f59e899176dde28280fc05a9f3d182f689fbbd4034d01e9e5baec35cf071b59ed851d8d62dd679b42fe
|
7
|
+
data.tar.gz: c9eafd9683a6e28569cdf46af87e094ac601229483946fbd0d06268a0cf79931539737786fc7538985abe426524ae9f023fc92020069915d3da3115e9c3b37eb
|
@@ -148,7 +148,7 @@ module LogStash::Outputs::Elasticsearch
|
|
148
148
|
@settings = org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder
|
149
149
|
if options[:host]
|
150
150
|
@settings.put("discovery.zen.ping.multicast.enabled", false)
|
151
|
-
@settings.put("discovery.zen.ping.unicast.hosts", hosts(options))
|
151
|
+
@settings.put("discovery.zen.ping.unicast.hosts", NodeClient.hosts(options))
|
152
152
|
end
|
153
153
|
|
154
154
|
@settings.put("node.client", true)
|
@@ -163,7 +163,7 @@ module LogStash::Outputs::Elasticsearch
|
|
163
163
|
return @settings
|
164
164
|
end
|
165
165
|
|
166
|
-
def hosts(options)
|
166
|
+
def self.hosts(options)
|
167
167
|
# http://www.elasticsearch.org/guide/reference/modules/discovery/zen/
|
168
168
|
result = Array.new
|
169
169
|
if options[:host].class == Array
|
@@ -198,7 +198,7 @@ module LogStash::Outputs::Elasticsearch
|
|
198
198
|
end
|
199
199
|
end
|
200
200
|
result.flatten.join(",")
|
201
|
-
end # def hosts
|
201
|
+
end # def self.hosts
|
202
202
|
|
203
203
|
def build_client(options)
|
204
204
|
nodebuilder = org.elasticsearch.node.NodeBuilder.nodeBuilder
|
@@ -5,7 +5,7 @@ describe "elasticsearch node client", :integration => true do
|
|
5
5
|
# Test ElasticSearch Node Client
|
6
6
|
# Reference: http://www.elasticsearch.org/guide/reference/modules/discovery/zen/
|
7
7
|
|
8
|
-
subject { LogStash::Outputs::Elasticsearch::Protocols::NodeClient
|
8
|
+
subject { LogStash::Outputs::Elasticsearch::Protocols::NodeClient }
|
9
9
|
|
10
10
|
it "should support hosts in both string and array" do
|
11
11
|
# Because we defined *hosts* method in NodeClient as private,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
237
|
version: '0'
|
238
238
|
requirements: []
|
239
239
|
rubyforge_project:
|
240
|
-
rubygems_version: 2.
|
240
|
+
rubygems_version: 2.1.9
|
241
241
|
signing_key:
|
242
242
|
specification_version: 4
|
243
243
|
summary: Logstash Output to Elasticsearch
|