logstash-input-beats 2.1.3 → 2.1.4

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: 6b827272694308645c0341eae3bd6ee1caa6429a
4
- data.tar.gz: 1128ffe70105c3c226da35bdf9b73615000c5feb
3
+ metadata.gz: e842feb71aa235b190d3ecc62267f82250d66bd1
4
+ data.tar.gz: 82c27027f6f482b7959a8b2c8db6641a99830dab
5
5
  SHA512:
6
- metadata.gz: 18e3f4fea0b3324bcabd32f54d0ee34fcc0c11547f1f9b26a807f5e6854f9888b9f9fafb91283572f1abadd3ef136fab60764d8566bfa418b90cc5937abe0d44
7
- data.tar.gz: 0f3821b6baad697b89183418141d82134f208e4b38865433f40ac2b104f23df2f2e717bf34f90ff496ee4dbfdfde0bd14de4df86e0303b0181034779a229a27f
6
+ metadata.gz: 5f1a5d58c37d7e4ea6adb24fbed54a85ce486257b3ab827b01ae9da11dfb644598d0e37301f8dd0c14aef4aaa81ed8229bab865bcd2b25aca012c9bbd8959768
7
+ data.tar.gz: b34f6a828c699c17aa4b7f00b6028c79104076369e5d48e3e1bd1a0afcb1ee38fd4232af34c3f2bc40b37830a1dfd90a5f14270cda482676a1b3adef5cd7561c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ # 2.1.4
2
+ - Change the `logger#warn` for `logger.debug` when a peer get disconnected, keep alive check from proxy can generate a lot of logs #46
1
3
  # 2.1.3
2
4
  - Make sure we stop all the threads after running the tests #48
3
5
  # 2.1.2
@@ -165,7 +165,7 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
165
165
 
166
166
  # This Method is called inside a new thread
167
167
  def handle_new_connection(connection)
168
- logger.debug? && logger.debug("Beats inputs: accepting a new connection",
168
+ @logger.debug? && @logger.debug("Beats inputs: accepting a new connection",
169
169
  :peer => connection.peer)
170
170
 
171
171
  LogStash::Util.set_thread_name("[beats-input]>connection-#{connection.peer}")
@@ -176,12 +176,14 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
176
176
  # All the errors handling is done here
177
177
  @circuit_breaker.execute { connection_handler.accept }
178
178
  rescue Lumberjack::Beats::Connection::ConnectionClosed => e
179
- logger.warn("Beats Input: Remote connection closed",
180
- :peer => connection.peer,
181
- :exception => e)
179
+ # Only show theses errors if we run in debug mode,
180
+ # This logger can get noisy if we use a proxy that check if the host is alive.
181
+ @logger.debug? && @logger.debug("Beats Input: Remote connection closed",
182
+ :peer => connection.peer,
183
+ :exception => e)
182
184
  rescue LogStash::Inputs::BeatsSupport::CircuitBreaker::OpenBreaker,
183
185
  LogStash::Inputs::BeatsSupport::CircuitBreaker::HalfOpenBreaker => e
184
- logger.warn("Beats input: The circuit breaker has detected a slowdown or stall in the pipeline, the input is closing the current connection and rejecting new connection until the pipeline recover.",
186
+ @logger.warn("Beats input: The circuit breaker has detected a slowdown or stall in the pipeline, the input is closing the current connection and rejecting new connection until the pipeline recover.",
185
187
  :exception => e.class)
186
188
  rescue Exception => e # If we have a malformed packet we should handle that so the input doesn't crash completely.
187
189
  @logger.error("Beats input: unhandled exception",
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "logstash-input-beats"
3
- s.version = "2.1.3"
3
+ s.version = "2.1.4"
4
4
  s.licenses = ["Apache License (2.0)"]
5
5
  s.summary = "Receive events using the lumberjack protocol."
6
6
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
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: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-11 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core