logstash-input-beats 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/logstash/inputs/beats.rb +7 -5
- data/logstash-input-beats.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e842feb71aa235b190d3ecc62267f82250d66bd1
|
4
|
+
data.tar.gz: 82c27027f6f482b7959a8b2c8db6641a99830dab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f1a5d58c37d7e4ea6adb24fbed54a85ce486257b3ab827b01ae9da11dfb644598d0e37301f8dd0c14aef4aaa81ed8229bab865bcd2b25aca012c9bbd8959768
|
7
|
+
data.tar.gz: b34f6a828c699c17aa4b7f00b6028c79104076369e5d48e3e1bd1a0afcb1ee38fd4232af34c3f2bc40b37830a1dfd90a5f14270cda482676a1b3adef5cd7561c
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
180
|
-
|
181
|
-
|
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
|
+
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.
|
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
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|