logstash-input-beats 6.2.1-java → 6.2.5-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
  SHA256:
3
- metadata.gz: 53b66be9656d02212b1449645c83e128eb4fb32ceaa26ec76bc725a8cdd06a3a
4
- data.tar.gz: 7ed11fe837aa9c6bf439ca0d7e16fdebec26e359f658410e18b6ec793a472ca5
3
+ metadata.gz: 1194016e06023182858402e9c736cd075fea8511aeb62cd5ad97a54049b71e87
4
+ data.tar.gz: 71b169152965ed6be439ed2649f5258911c6e1b7488152ede740f30993014497
5
5
  SHA512:
6
- metadata.gz: 6c75faeb9ae359e700f2feffeab892a200c9e011102ee4d21211813647749630776a9f4e88336dddc7873ae223623cc84852c28e06e3f6e3788a3aa1ba57e4a7
7
- data.tar.gz: af9985a8fd2fed373f455d8980721f05a2473603a578593476af13f009a18ea1527bb7164db20ae0c364f98e49703fee95c7e21706729c2e0c6fd2dad411e4cb
6
+ metadata.gz: 2b38f167c9f56b47eb08425aac7327633ec2c5a49d349a49d391a87a5a4a54fb76366a0ad533f8aa574d621bdded4bcffabffeba45209b590b505ee83941183e
7
+ data.tar.gz: ecc52f6de5714201deb29a1bb8793c64a7d07c2d0adb47d0542ae0e2b29b74ee2dfcb341185cec8937af5954f85865e9f55a7ceb9889d6a0a83b536b36541a14
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 6.2.5
2
+ - Build: do not package log4j-api dependency [#441](https://github.com/logstash-plugins/logstash-input-beats/pull/441).
3
+ Logstash provides the log4j framework and the dependency is not needed except testing and compiling.
4
+
5
+ ## 6.2.4
6
+ - Updated log4j dependency to 2.17.0
7
+
8
+ ## 6.2.3
9
+ - Updated log4j dependency to 2.15.0
10
+
11
+ ## 6.2.2
12
+ - Fix: update to Gradle 7 [#432](https://github.com/logstash-plugins/logstash-input-beats/pull/432)
13
+ - [DOC] Edit documentation for `executor_threads` [#435](https://github.com/logstash-plugins/logstash-input-beats/pull/435)
14
+
1
15
  ## 6.2.1
2
16
  - Fix: LS failing with `ssl_peer_metadata => true` [#431](https://github.com/logstash-plugins/logstash-input-beats/pull/431)
3
17
  - [DOC] described `executor_threads` configuration parameter [#421](https://github.com/logstash-plugins/logstash-input-beats/pull/421)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.2.1
1
+ 6.2.5
data/docs/index.asciidoc CHANGED
@@ -232,14 +232,14 @@ Refer to <<plugins-{type}s-{plugin}-ecs_metadata,ECS mapping>> for detailed info
232
232
  * Default value is 1 executor thread per CPU core
233
233
 
234
234
  The number of threads to be used to process incoming beats requests.
235
- By default Beats input will create a number of threads equals to 2*CPU cores to handle incoming connections,
236
- reading from the established sockets and execute most of the tasks related to network connection managements,
237
- except the parsing of Lumberjack protocol that's offloaded to a dedicated thread pool.
235
+ By default the Beats input creates a number of threads equal to 2*CPU cores.
236
+ These threads handle incoming connections, reading from established sockets, and executing most of the tasks related to network connection management.
237
+ Parsing the Lumberjack protocol is offloaded to a dedicated thread pool.
238
238
 
239
239
  Generally you don't need to touch this setting.
240
240
  In case you are sending very large events and observing "OutOfDirectMemory" exceptions,
241
241
  you may want to reduce this number to half or 1/4 of the CPU cores.
242
- This will reduce the number of threads decompressing batches of data into direct memory.
242
+ This change reduces the number of threads decompressing batches of data into direct memory.
243
243
  However, this will only be a mitigating tweak, as the proper solution may require resizing your Logstash deployment,
244
244
  either by increasing number of Logstash nodes or increasing the JVM's Direct Memory.
245
245
 
@@ -7,5 +7,4 @@ require_jar('com.fasterxml.jackson.core', 'jackson-core', '2.9.10')
7
7
  require_jar('com.fasterxml.jackson.core', 'jackson-annotations', '2.9.10')
8
8
  require_jar('com.fasterxml.jackson.core', 'jackson-databind', '2.9.10.8')
9
9
  require_jar('com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.9.10')
10
- require_jar('org.apache.logging.log4j', 'log4j-api', '2.11.1')
11
- require_jar('org.logstash.beats', 'logstash-input-beats', '6.2.1')
10
+ require_jar('org.logstash.beats', 'logstash-input-beats', '6.2.5')
@@ -166,7 +166,14 @@ describe LogStash::Inputs::Beats do
166
166
  end
167
167
 
168
168
  context "tls meta-data" do
169
- let(:config) { super().merge("host" => host, "ssl_peer_metadata" => true, "ssl_certificate_authorities" => [ certificate.ssl_cert ]) }
169
+ let(:config) do
170
+ super().merge(
171
+ "host" => host,
172
+ "ssl_peer_metadata" => true,
173
+ "ssl_certificate_authorities" => [ certificate.ssl_cert ],
174
+ "ecs_compatibility" => 'disabled'
175
+ )
176
+ end
170
177
  let(:host) { "192.168.1.20" }
171
178
  let(:port) { 9002 }
172
179
 
@@ -177,27 +177,34 @@ describe "Filebeat", :integration => true do
177
177
  # Refactor this to use Flores's PKI instead of openssl command line
178
178
  # see: https://github.com/jordansissel/ruby-flores/issues/7
179
179
  context "with a passphrase" do
180
- let!(:temporary_directory) { Stud::Temporary.pathname }
181
- let(:certificate_key_file) { ::File.join(temporary_directory, "certificate.key") }
182
- let(:certificate_key_file_pkcs8) { ::File.join(temporary_directory, "certificate.pkcs8.key") }
183
- let(:certificate_file) { ::File.join(temporary_directory, "certificate.crt") }
184
- let(:passphrase) { "foobar" }
185
- let(:beats) {
186
- # Since we are using a shared context, this not obvious to make sure the openssl command
187
- # is run before starting beats so we do it just before initializing it.
188
- FileUtils.mkdir_p(temporary_directory)
189
- openssl_cmd = "openssl req -x509 -batch -newkey rsa:2048 -keyout #{temporary_directory}/certificate.key -out #{temporary_directory}/certificate.crt -subj /CN=localhost -passout pass:#{passphrase}"
190
- system(openssl_cmd)
191
- convert_key_cmd = "openssl pkcs8 -topk8 -in #{temporary_directory}/certificate.key -out #{certificate_key_file_pkcs8} -passin pass:#{passphrase} -passout pass:#{passphrase}"
192
- system(convert_key_cmd)
193
-
194
- LogStash::Inputs::Beats.new(input_config)
195
- }
196
- let(:input_config) {
197
- super().merge({
198
- "ssl_key_passphrase" => passphrase,
199
- "ssl_key" => certificate_key_file_pkcs8
200
- })}
180
+
181
+ before(:all) do
182
+ @passphrase = "foobar".freeze
183
+
184
+ FileUtils.mkdir_p temporary_directory = Stud::Temporary.pathname
185
+
186
+ cert_key = ::File.join(temporary_directory, "certificate.key")
187
+ @cert_pub = ::File.join(temporary_directory, "certificate.crt")
188
+ @cert_key_pkcs8 = ::File.join(temporary_directory, "certificate.key.pkcs8")
189
+
190
+ cmd = "openssl req -x509 -batch -newkey rsa:2048 -keyout #{cert_key} -out #{@cert_pub} -passout pass:#{@passphrase} -subj \"/C=EU/O=Logstash/CN=localhost\""
191
+ unless system(cmd)
192
+ fail "failed to run openssl command: #{$?} \n#{cmd}"
193
+ end
194
+
195
+ # NOTE: CentOS 7 base image (LS < 7.17) uses OpenSSL 1.0 while later is using Ubuntu 20.04 with OpenSSL 1.1.1
196
+ # the default algorithm for `openssl pkcs8 -topk8` changed to -v2 which Java does not support (see GH-443)
197
+ cmd = "openssl pkcs8 -topk8 -in #{cert_key} -out #{@cert_key_pkcs8} -v1 PBE-SHA1-RC2-128 -passin pass:#{@passphrase} -passout pass:#{@passphrase}"
198
+ unless system(cmd)
199
+ fail "failed to run openssl command: #{$?} \n#{cmd}"
200
+ end
201
+ end
202
+
203
+ let(:certificate_authorities) { [ @cert_pub ] }
204
+
205
+ let(:input_config) do
206
+ super().merge("ssl_key_passphrase" => @passphrase, "ssl_key" => @cert_key_pkcs8, "ssl_certificate" => @cert_pub)
207
+ end
201
208
 
202
209
  include_examples "send events"
203
210
  end
@@ -50,6 +50,7 @@ shared_context "beats configuration" do
50
50
  begin
51
51
  beats.run(queue)
52
52
  rescue => e
53
+ warn e.inspect if $VERBOSE
53
54
  retry unless beats.stop?
54
55
  end
55
56
  end
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: 6.2.1
4
+ version: 6.2.5
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -297,9 +297,8 @@ files:
297
297
  - vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-databind/2.9.10.8/jackson-databind-2.9.10.8.jar
298
298
  - vendor/jar-dependencies/com/fasterxml/jackson/module/jackson-module-afterburner/2.9.10/jackson-module-afterburner-2.9.10.jar
299
299
  - vendor/jar-dependencies/io/netty/netty-all/4.1.65.Final/netty-all-4.1.65.Final.jar
300
- - vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.11.1/log4j-api-2.11.1.jar
301
300
  - vendor/jar-dependencies/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar
302
- - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.2.1/logstash-input-beats-6.2.1.jar
301
+ - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.2.5/logstash-input-beats-6.2.5.jar
303
302
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
304
303
  licenses:
305
304
  - Apache License (2.0)