logstash-input-beats 5.0.3-java → 5.0.4-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 +4 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/logstash-input-beats_jars.rb +1 -1
- data/lib/logstash/inputs/beats.rb +4 -1
- data/spec/inputs/beats_spec.rb +3 -2
- data/vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/{5.0.3/logstash-input-beats-5.0.3.jar → 5.0.4/logstash-input-beats-5.0.4.jar} +0 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a6d845ad2b35a5695019c5e3735f993c4ad4f30a75f744a15535e62d839ff4b
|
4
|
+
data.tar.gz: de65264eb05bfbca07af92c2aeb35ac2c49e795b728d788632b375ddcfd3c068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e6d24024876d7a5fd85f3bc717c5b534328bc2d05fe3ad13183db037635970b3dd11c0d7a3ada0d145daae8894f6332d9dcee42852576b1dde9bf9607cad2f8
|
7
|
+
data.tar.gz: 0da3bc63f17a30bd03eb1d85dec46f81262deeb98d89be0ffbf16457c99f1936961453aec6236583d90daddfa1e83186b2fa55b45e0b126fa6b7f30db804021e
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.0.
|
1
|
+
5.0.4
|
@@ -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('org.apache.logging.log4j', 'log4j-api', '2.6.2')
|
12
|
-
require_jar('org.logstash.beats', 'logstash-input-beats', '5.0.
|
12
|
+
require_jar('org.logstash.beats', 'logstash-input-beats', '5.0.4')
|
@@ -119,6 +119,9 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
|
|
119
119
|
# Close Idle clients after X seconds of inactivity.
|
120
120
|
config :client_inactivity_timeout, :validate => :number, :default => 60
|
121
121
|
|
122
|
+
# Beats handler executor thread
|
123
|
+
config :executor_threads, :validate => :number, :default => LogStash::Config::CpuCoreStrategy.maximum * 4
|
124
|
+
|
122
125
|
def register
|
123
126
|
# For Logstash 2.4 we need to make sure that the logger is correctly set for the
|
124
127
|
# java classes before actually loading them.
|
@@ -156,7 +159,7 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
|
|
156
159
|
end # def register
|
157
160
|
|
158
161
|
def create_server
|
159
|
-
server = org.logstash.beats.Server.new(@host, @port, @client_inactivity_timeout)
|
162
|
+
server = org.logstash.beats.Server.new(@host, @port, @client_inactivity_timeout, @executor_threads)
|
160
163
|
if @ssl
|
161
164
|
|
162
165
|
begin
|
data/spec/inputs/beats_spec.rb
CHANGED
@@ -16,15 +16,16 @@ describe LogStash::Inputs::Beats do
|
|
16
16
|
|
17
17
|
context "#register" do
|
18
18
|
context "host related configuration" do
|
19
|
-
let(:config) { super.merge!({ "host" => host, "port" => port, "client_inactivity_timeout" => client_inactivity_timeout }) }
|
19
|
+
let(:config) { super.merge!({ "host" => host, "port" => port, "client_inactivity_timeout" => client_inactivity_timeout, "executor_threads" => threads }) }
|
20
20
|
let(:host) { "192.168.1.20" }
|
21
21
|
let(:port) { 9000 }
|
22
22
|
let(:client_inactivity_timeout) { 400 }
|
23
|
+
let(:threads) { 10 }
|
23
24
|
|
24
25
|
subject(:plugin) { LogStash::Inputs::Beats.new(config) }
|
25
26
|
|
26
27
|
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
|
+
expect(org.logstash.beats.Server).to receive(:new).with(host, port, client_inactivity_timeout, threads)
|
28
29
|
subject.register
|
29
30
|
end
|
30
31
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-beats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.4
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -266,7 +266,7 @@ files:
|
|
266
266
|
- vendor/jar-dependencies/io/netty/netty-tcnative-boringssl-static/1.1.33.Fork23/netty-tcnative-boringssl-static-1.1.33.Fork23.jar
|
267
267
|
- vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar
|
268
268
|
- vendor/jar-dependencies/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar
|
269
|
-
- vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/5.0.
|
269
|
+
- vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/5.0.4/logstash-input-beats-5.0.4.jar
|
270
270
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
271
271
|
licenses:
|
272
272
|
- Apache License (2.0)
|
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
290
|
version: '0'
|
291
291
|
requirements: []
|
292
292
|
rubyforge_project:
|
293
|
-
rubygems_version: 2.6.
|
293
|
+
rubygems_version: 2.6.13
|
294
294
|
signing_key:
|
295
295
|
specification_version: 4
|
296
296
|
summary: Receives events from the Elastic Beats framework
|