logstash-output-elasticsearch_java 2.0.0.beta5 → 2.0.0.beta6

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: 9f921261909c00b735dbc91ff20531ae8411d3c9
4
- data.tar.gz: 29619fedd17dbc1ae24aaf8d99d571bbbd9bc756
3
+ metadata.gz: eee11b1070782cb52e85390cae6d8a0e92ebfe63
4
+ data.tar.gz: 7f508fcedb3b86d8d169c06816906c2f979cdc71
5
5
  SHA512:
6
- metadata.gz: e6c5796ef190689b9647a4ab081cc7dd00b5f28652d148353d7e306c2e5e385a9f2b121f7bd6859a2e17a9f83649f880c5e3bbb6fe807a59d9b337f598b3867c
7
- data.tar.gz: 55e2c01e92cbb836494287a1bec07e5f7aab4eebf1fdfab942ec8dad43dbb5ddf5871da078bc3043c5dcb6a66ad3d93959cc048328a1e28e2a6cb29ead1e26d7
6
+ metadata.gz: 21d21ed89aded30c7535d78309f70b4fa3b07431da940e97c9facdda81652c4268bbf6a2357735e81ace45af7736655fb4a0b4461ea893904838102ac3ff9492
7
+ data.tar.gz: c84d407cab42a88f67db7729604bc544651c09896cbe4a39614bf62dc8c392ff9d4cf25f463fb5ba0708d27aa82948ffb342a38b96b72b79ea5de1949d449413
@@ -131,6 +131,7 @@ class LogStash::Outputs::ElasticSearchJava < LogStash::Outputs::Base
131
131
  # The name of your cluster if you set it on the Elasticsearch side. Useful
132
132
  # for discovery when using `node` or `transport` protocols.
133
133
  # By default, it looks for a cluster named 'elasticsearch'.
134
+ # Equivalent to the Elasticsearch option 'cluster.name'
134
135
  config :cluster, :validate => :string
135
136
 
136
137
  # For the `node` protocol, if you do not specify `host`, it will attempt to use
@@ -174,14 +175,13 @@ class LogStash::Outputs::ElasticSearchJava < LogStash::Outputs::Base
174
175
  # * `protocol => node` - port 9300-9305
175
176
  config :port, :validate => :string, :default => "9300-9305"
176
177
 
177
- # The name/address of the host to bind to for Elasticsearch clustering
178
- # This MUST be set when the node protocol is used. The internal Elasticsearch node
178
+ # The name/address of the host to bind to for Elasticsearch clustering. Equivalent to the Elasticsearch option 'network.host'
179
+ # option.
180
+ # This MUST be set for either protocol to work (node or transport)! The internal Elasticsearch node
179
181
  # will bind to this ip. This ip MUST be reachable by all nodes in the Elasticsearch cluster
180
- config :network_host, :validate => :string
182
+ config :network_host, :validate => :string, :required => true
181
183
 
182
- # This is only valid for the 'node' protocol. This sets the port to bind to on 'network_host'
183
- #
184
- # The port for the node to listen on.
184
+ # This sets the local port to bind to. Equivalent to the Elasticsrearch option 'transport.tcp.port'
185
185
  config :transport_tcp_port, :validate => :number
186
186
 
187
187
  # This setting no longer does anything. It exists to keep config validation
@@ -229,10 +229,7 @@ class LogStash::Outputs::ElasticSearchJava < LogStash::Outputs::Base
229
229
  # Elasticsearch cluster to this Logstash server.
230
230
  #
231
231
  # All protocols will use bulk requests when talking to Elasticsearch.
232
- #
233
- # The default `protocol` setting under java/jruby is "node". The default
234
- # `protocol` on non-java rubies is "http"
235
- config :protocol, :validate => [ "node", "transport"], :default => "node"
232
+ config :protocol, :validate => [ "node", "transport"], :default => "transport"
236
233
 
237
234
  # The Elasticsearch action to perform. Valid actions are: `index`, `delete`.
238
235
  #
@@ -273,8 +270,9 @@ class LogStash::Outputs::ElasticSearchJava < LogStash::Outputs::Base
273
270
  # Set the truststore password
274
271
  config :keystore_password, :validate => :password
275
272
 
276
- # Enable cluster sniffing (transport only)
273
+ # Enable cluster sniffing (transport only).
277
274
  # Asks host for the list of all cluster nodes and adds them to the hosts list
275
+ # Equivalent to the Elasticsearch option 'client.transport.sniff'
278
276
  config :sniffing, :validate => :boolean, :default => false
279
277
 
280
278
  # Set max retry for each event
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-elasticsearch_java'
3
- s.version = '2.0.0.beta5'
3
+ s.version = '2.0.0.beta6'
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"
@@ -20,10 +20,10 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # Gem dependencies
22
22
  s.add_runtime_dependency 'concurrent-ruby'
23
- s.add_runtime_dependency 'elasticsearch', ['>= 1.0.10', '~> 1.0']
23
+ s.add_runtime_dependency 'elasticsearch', ['>= 1.0.13', '~> 1.0']
24
24
  s.add_runtime_dependency 'stud', ['>= 0.0.17', '~> 0.0']
25
25
  s.add_runtime_dependency 'cabin', ['~> 0.6']
26
- s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
26
+ s.add_runtime_dependency "logstash-core", ['>= 2.0.0.beta1', '< 3.0.0']
27
27
 
28
28
  s.add_development_dependency 'ftw', '~> 0.0.42'
29
29
  s.add_development_dependency 'logstash-input-generator'
@@ -53,6 +53,7 @@ describe "an indexer with custom index_type", :integration => true do
53
53
  output {
54
54
  elasticsearch_java {
55
55
  hosts => "#{get_host()}"
56
+ network_host => "#{get_local_host}"
56
57
  port => "#{get_port('transport')}"
57
58
  protocol => "transport"
58
59
  index => "#{index}"
@@ -78,6 +79,7 @@ describe "an indexer with no type value set (default to logs)", :integration =>
78
79
  output {
79
80
  elasticsearch_java {
80
81
  hosts => "#{get_host()}"
82
+ network_host => "#{get_local_host}"
81
83
  port => "#{get_port('transport')}"
82
84
  protocol => "transport"
83
85
  index => "#{index}"
@@ -21,6 +21,7 @@ describe "failures in bulk class expected behavior", :integration => true do
21
21
  "manage_template" => true,
22
22
  "index" => "logstash-2014.11.17",
23
23
  "template_overwrite" => true,
24
+ "network_host" => get_local_host,
24
25
  "protocol" => 'transport',
25
26
  "hosts" => get_host(),
26
27
  "port" => get_port('transport'),
@@ -52,6 +52,7 @@ describe "(transport protocol) index events with fieldref in routing value", :in
52
52
  index => "#{index}"
53
53
  flush_size => #{flush_size}
54
54
  routing => "%{message}"
55
+ network_host => "#{get_local_host}"
55
56
  }
56
57
  }
57
58
  CONFIG
@@ -11,7 +11,8 @@ describe "index template expected behavior", :integration => true do
11
11
  "template_overwrite" => true,
12
12
  "protocol" => protocol,
13
13
  "hosts" => "#{get_host()}",
14
- "port" => "#{get_port('transport')}"
14
+ "port" => "#{get_port('transport')}",
15
+ "network_host" => get_local_host
15
16
  }
16
17
  next LogStash::Outputs::ElasticSearchJava.new(settings)
17
18
  end
@@ -12,7 +12,8 @@ describe "transport client create actions", :integration => true do
12
12
  "protocol" => "transport",
13
13
  "hosts" => get_host(),
14
14
  "port" => get_port('transport'),
15
- "action" => action
15
+ "action" => action,
16
+ "network_host" => get_local_host
16
17
  }
17
18
  settings['document_id'] = id unless id.nil?
18
19
  LogStash::Outputs::ElasticSearchJava.new(settings)
@@ -3,7 +3,11 @@ require_relative "../../../spec/es_spec_helper"
3
3
  describe "outputs/elasticsearch_java" do
4
4
  context "registration" do
5
5
  it "should register" do
6
- output = LogStash::Plugin.lookup("output", "elasticsearch_java").new("protocol" => "transport", "manage_template" => "false")
6
+ output = LogStash::Plugin.lookup("output", "elasticsearch_java").new(
7
+ "protocol" => "transport",
8
+ "network_host" => get_local_host,
9
+ "manage_template" => "false"
10
+ )
7
11
  # register will try to load jars and raise if it cannot find jars
8
12
  expect {output.register}.to_not raise_error
9
13
  end
@@ -15,6 +19,7 @@ describe "outputs/elasticsearch_java" do
15
19
  require "logstash/outputs/elasticsearch_java"
16
20
  settings = {
17
21
  "protocol" => "transport",
22
+ "network_host" => get_local_host,
18
23
  "node_name" => "mynode"
19
24
  }
20
25
  next LogStash::Outputs::ElasticSearchJava.new(settings)
@@ -27,6 +32,7 @@ describe "outputs/elasticsearch_java" do
27
32
  :protocol => "transport",
28
33
  :client_settings => {
29
34
  "client.transport.sniff" => false,
35
+ "network.host" => get_local_host,
30
36
  "node.name" => "mynode"
31
37
  }
32
38
  })
@@ -40,6 +46,7 @@ describe "outputs/elasticsearch_java" do
40
46
  settings = {
41
47
  "hosts" => "node01",
42
48
  "protocol" => "transport",
49
+ "network_host" => get_local_host,
43
50
  "sniffing" => true
44
51
  }
45
52
  next LogStash::Outputs::ElasticSearchJava.new(settings)
@@ -61,6 +68,7 @@ describe "outputs/elasticsearch_java" do
61
68
  settings = {
62
69
  "hosts" => "node01",
63
70
  "protocol" => "transport",
71
+ "network_host" => get_local_host,
64
72
  "sniffing" => false
65
73
  }
66
74
  next LogStash::Outputs::ElasticSearchJava.new(settings)
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.0.0.beta5
4
+ version: 2.0.0.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-04 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.0.10
32
+ version: 1.0.13
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: '1.0'
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.0.10
43
+ version: 1.0.13
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
@@ -83,10 +83,10 @@ dependencies:
83
83
  requirements:
84
84
  - - ">="
85
85
  - !ruby/object:Gem::Version
86
- version: 1.4.0
86
+ version: 2.0.0.beta1
87
87
  - - "<"
88
88
  - !ruby/object:Gem::Version
89
- version: 2.0.0
89
+ version: 3.0.0
90
90
  name: logstash-core
91
91
  prerelease: false
92
92
  type: :runtime
@@ -94,10 +94,10 @@ dependencies:
94
94
  requirements:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: 1.4.0
97
+ version: 2.0.0.beta1
98
98
  - - "<"
99
99
  - !ruby/object:Gem::Version
100
- version: 2.0.0
100
+ version: 3.0.0
101
101
  - !ruby/object:Gem::Dependency
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
@@ -262,3 +262,4 @@ test_files:
262
262
  - spec/integration/outputs/update_spec.rb
263
263
  - spec/unit/outputs/elasticsearch/protocol_spec.rb
264
264
  - spec/unit/outputs/elasticsearch_spec.rb
265
+ has_rdoc: