logstash-input-beats 3.1.9-java → 3.1.10-java

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: b003f6b049770423d9eb366b3ef932715dfb0f90
4
- data.tar.gz: ad3c654bad6d28644b745820611302b0a45f7858
3
+ metadata.gz: 8ef5df359b2e0fae0ce393dd19cd7b2c81faa53b
4
+ data.tar.gz: 683fc96cef31e85cc16fdbd0b8af496354079b87
5
5
  SHA512:
6
- metadata.gz: 31654b5d204d7f17ca64766209236b1a09b3d3b12aa0416286773993a667cfb23fbc9e28bef1bce6c78a8608179560963199c98d9474bcc06417c4150d9d7d78
7
- data.tar.gz: c3584c3edfe927fe56c182b5c6a428d131347a86692fd28e0677754c2fd642ed9dda3a5d0a8968f065b499dde17ad0f882260397df06aa9c3b14f0d7034549a5
6
+ metadata.gz: 787652edcb19f22a14d11a8f0174f313b3d8b32fe963db30f2be36881fd53feba0a5dc079f07441a8f00a71c94070ddf4c24076c2291575920121a7c06cf7333
7
+ data.tar.gz: 72cd4fbbd93da244f139a3827a22b84baf6b38774b9e8b88054c79032ab6f846b878fe4d0f3e57accd8388c579089979a44733a2c7ca5ce773ec2981adc21f26
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.1.10
2
+ - Correctly send the client_inactivity_timeout to the Server classe #163
3
+ - Mark congestion_threshold as deprecated, the java implementation now use a keep alive mechanism
4
+
1
5
  ## 3.1.9
2
6
  - Docs: Removed statement about intermediate CAs not being supported
3
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.9
1
+ 3.1.10
@@ -9,4 +9,4 @@ require_jar('com.fasterxml.jackson.core', 'jackson-annotations', '2.7.5')
9
9
  require_jar('com.fasterxml.jackson.core', 'jackson-databind', '2.7.5')
10
10
  require_jar('com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.7.5')
11
11
  require_jar('log4j', 'log4j', '1.2.17')
12
- require_jar('org.logstash.beats', 'logstash-input-beats', '3.1.9')
12
+ require_jar('org.logstash.beats', 'logstash-input-beats', '3.1.10')
@@ -118,7 +118,7 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
118
118
 
119
119
  # The number of seconds before we raise a timeout.
120
120
  # This option is useful to control how much time to wait if something is blocking the pipeline.
121
- config :congestion_threshold, :validate => :number, :default => 5
121
+ config :congestion_threshold, :validate => :number, :default => 5, :deprecated => "This option is now deprecated since congestion control is done automatically"
122
122
 
123
123
  # This is the default field to which the specified codec will be applied.
124
124
  config :target_field_for_codec, :validate => :string, :default => "message", :deprecated => "This option is now deprecated, the plugin is now compatible with Filebeat and Logstash-Forwarder"
@@ -169,7 +169,7 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
169
169
  end # def register
170
170
 
171
171
  def create_server
172
- server = org.logstash.beats.Server.new(@host, @port)
172
+ server = org.logstash.beats.Server.new(@host, @port, @client_inactivity_timeout)
173
173
  if @ssl
174
174
 
175
175
  begin
@@ -15,6 +15,20 @@ describe LogStash::Inputs::Beats do
15
15
  let(:config) { { "port" => 0, "ssl_certificate" => certificate.ssl_cert, "ssl_key" => certificate.ssl_key, "type" => "example", "tags" => "beats"} }
16
16
 
17
17
  context "#register" do
18
+ context "host related configuration" do
19
+ let(:config) { super.merge!({ "host" => host, "port" => port, "client_inactivity_timeout" => client_inactivity_timeout }) }
20
+ let(:host) { "192.168.1.20" }
21
+ let(:port) { 9000 }
22
+ let(:client_inactivity_timeout) { 400 }
23
+
24
+ subject(:plugin) { LogStash::Inputs::Beats.new(config) }
25
+
26
+ it "sends the required options to the server" do
27
+ expect(org.logstash.beats.Server).to receive(:new).with(host, port, client_inactivity_timeout)
28
+ subject.register
29
+ end
30
+ end
31
+
18
32
  context "identity map" do
19
33
  subject(:plugin) { LogStash::Inputs::Beats.new(config) }
20
34
  before { plugin.register }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-beats
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.9
4
+ version: 3.1.10
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
@@ -268,7 +268,7 @@ files:
268
268
  - vendor/jar-dependencies/io/netty/netty-tcnative-boringssl-static/1.1.33.Fork23/netty-tcnative-boringssl-static-1.1.33.Fork23.jar
269
269
  - vendor/jar-dependencies/log4j/log4j/1.2.17/log4j-1.2.17.jar
270
270
  - vendor/jar-dependencies/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar
271
- - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/3.1.9/logstash-input-beats-3.1.9.jar
271
+ - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/3.1.10/logstash-input-beats-3.1.10.jar
272
272
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
273
273
  licenses:
274
274
  - Apache License (2.0)