logstash-input-beats 5.0.1-java → 5.0.2-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
- SHA1:
3
- metadata.gz: b9806d792f16d48d8cc8a3bf8cbc47bb5adc5c24
4
- data.tar.gz: 4cb057be6ca189ee48300d4113ad7173dd165c5a
2
+ SHA256:
3
+ metadata.gz: 6ebf166ca4e2180a6a591abc9ec566e13fda4740fa121fb2b3b4990425d5f927
4
+ data.tar.gz: 5d7136ed2f0f6b887d79cdbab6dc787f5cde414ca3226a8f12aeba6799b46a2d
5
5
  SHA512:
6
- metadata.gz: 34223d38a45160cabf4b9b31da997b1ce82ce2caf50ca8f6f75dd9c21ec24d70f9c00e33e4ee8754adb4c3803c0687d8e406fe5ed912a3f4578778fb72b50068
7
- data.tar.gz: dbfc3b988700c7e9f9c9f10e3bbde9f30ea13b7f7e0065d58ee6e771e26ce961c4a486645610bffdb95b52496273f03951a5429ffde4db8c7195db45665138d1
6
+ metadata.gz: cbd6254f417e6e6cdf474e131f565a993f13755cd57b8f09228cdb9f7cb468e5f23d4fb8140a9b43299b2cd5bea746edebce4a2a897d789e2896d326ca387bb8
7
+ data.tar.gz: 824a9765e11dcc3fbd7311d8e5c4e07ab1e50032eac0f276c6fc10d6247993dcf720a24fa878c33e2bf63cc0e3b05de895d81459026adfadeaa45629f7dbbaff
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 5.0.2
2
+ - Change IdleState strategy from `READER_IDLE` to `ALL_IDLE` #262
3
+ - Additional context when logging from the BeatsHandler #261
4
+ - Remove the `LoggingHandler` from the handler stack to reduce noise in the log.
5
+
1
6
  ## 5.0.1
2
7
  - Fix some documentation issues
3
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.0.1
1
+ 5.0.2
@@ -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.1')
12
+ require_jar('org.logstash.beats', 'logstash-input-beats', '5.0.2')
@@ -64,9 +64,9 @@ module LogStash module Inputs class Beats
64
64
  # This is mostly due to a bad certificate or keys, running Logstash in debug mode will show more information
65
65
  if cause.is_a?(Java::JavaLang::IllegalArgumentException)
66
66
  if input.logger.debug?
67
- input.logger.error("Looks like you either have an invalid key or your private key was not in PKCS8 format.")
67
+ input.logger.error("Looks like you either have a bad certificate, an invalid key or your private key was not in PKCS8 format.", :exception => cause)
68
68
  else
69
- input.logger.error("Looks like you either have an invalid key or your private key was not in PKCS8 format.", :exception => cause)
69
+ input.logger.error("Looks like you either have a bad certificate, an invalid key or your private key was not in PKCS8 format.")
70
70
  end
71
71
  else
72
72
  input.logger.warn("Error when creating a connection", :exception => cause.to_s)
@@ -32,10 +32,12 @@ module ClientProcessHelpers
32
32
  end
33
33
 
34
34
  def stop_client
35
- begin
36
- @process.poll_for_exit(5)
37
- rescue ChildProcess::TimeoutError
38
- Process.kill("KILL", @process.pid)
35
+ unless @process.nil?
36
+ begin
37
+ @process.poll_for_exit(5)
38
+ rescue ChildProcess::TimeoutError
39
+ Process.kill("KILL", @process.pid)
40
+ end
39
41
  end
40
42
  end
41
43
  end
@@ -11,6 +11,13 @@ OPEN_SSL_TOPK8 = "openssl pkcs8 -nocrypt -topk8 -inform PEM -outform PEM"
11
11
  #
12
12
  def convert_to_pkcs8(key)
13
13
  out, e, s = Open3.capture3(OPEN_SSL_TOPK8, :stdin_data => key.to_s)
14
- raise e if e != ""
14
+ # attempt to address random failures by trying again
15
+ unless s.success?
16
+ sleep 1
17
+ out, e, s = Open3.capture3(OPEN_SSL_TOPK8, :stdin_data => key.to_s)
18
+ raise e if e != ""
19
+ out
20
+ end
21
+
15
22
  out
16
23
  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: 5.0.1
4
+ version: 5.0.2
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2017-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -212,7 +212,9 @@ dependencies:
212
212
  - - ">="
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
- description: This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program
215
+ description: This gem is a Logstash plugin required to be installed on top of the
216
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
217
+ gem is not a stand-alone program
216
218
  email: info@elastic.co
217
219
  executables: []
218
220
  extensions: []
@@ -264,8 +266,7 @@ files:
264
266
  - vendor/jar-dependencies/io/netty/netty-tcnative-boringssl-static/1.1.33.Fork23/netty-tcnative-boringssl-static-1.1.33.Fork23.jar
265
267
  - vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar
266
268
  - vendor/jar-dependencies/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar
267
- - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/5.0.0/logstash-input-beats-5.0.0.jar
268
- - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/5.0.1/logstash-input-beats-5.0.1.jar
269
+ - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/5.0.2/logstash-input-beats-5.0.2.jar
269
270
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
270
271
  licenses:
271
272
  - Apache License (2.0)
@@ -289,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
290
  version: '0'
290
291
  requirements: []
291
292
  rubyforge_project:
292
- rubygems_version: 2.4.8
293
+ rubygems_version: 2.6.11
293
294
  signing_key:
294
295
  specification_version: 4
295
296
  summary: Receive events using the lumberjack protocol.