logstash-input-tcp 5.0.4-java → 5.0.5-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/lib/logstash/inputs/tcp.rb +8 -7
- data/lib/logstash/inputs/tcp/decoder_impl.rb +2 -2
- data/vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/{5.0.4/logstash-input-tcp-5.0.4.jar → 5.0.5/logstash-input-tcp-5.0.5.jar} +0 -0
- data/version +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad7840c0cf73f327b2b02bf73482c901aac8574fc021e0595e11c2fd7f084dea
|
4
|
+
data.tar.gz: 3eb145d5dad58772c79d5ba7dc404efcc118681ffe5f0556366a02d5f5ec8ed0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f53b94841621db869d25b9dbc96b4833f928bd7b7a2713347c6e56ef1e76d0dc8a35f41f6b7114c2d8a487a3ab11b510329f54b8a194fca4c8d003b1930f2637
|
7
|
+
data.tar.gz: ec3ab3f25406f52f1879621b1dae31ea667f7ea3fda2f7dfbf3b472bfb8876fd0d44f203918ffacbe6c09199c3b7282e6b5a331a287f310a3ed94c4b2302520e
|
data/CHANGELOG.md
CHANGED
data/lib/logstash/inputs/tcp.rb
CHANGED
@@ -178,19 +178,19 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
|
|
178
178
|
end
|
179
179
|
|
180
180
|
def decode_buffer(client_ip_address, client_address, client_port, codec, proxy_address,
|
181
|
-
proxy_port, tbuf)
|
181
|
+
proxy_port, tbuf, socket)
|
182
182
|
codec.decode(tbuf) do |event|
|
183
183
|
if @proxy_protocol
|
184
184
|
event.set(PROXY_HOST_FIELD, proxy_address) unless event.get(PROXY_HOST_FIELD)
|
185
185
|
event.set(PROXY_PORT_FIELD, proxy_port) unless event.get(PROXY_PORT_FIELD)
|
186
186
|
end
|
187
|
-
enqueue_decorated(event, client_ip_address, client_address, client_port)
|
187
|
+
enqueue_decorated(event, client_ip_address, client_address, client_port, socket)
|
188
188
|
end
|
189
189
|
end
|
190
190
|
|
191
|
-
def flush_codec(codec, client_ip_address, client_address, client_port)
|
191
|
+
def flush_codec(codec, client_ip_address, client_address, client_port, socket)
|
192
192
|
codec.flush do |event|
|
193
|
-
enqueue_decorated(event, client_ip_address, client_address, client_port)
|
193
|
+
enqueue_decorated(event, client_ip_address, client_address, client_port, socket)
|
194
194
|
end
|
195
195
|
end
|
196
196
|
|
@@ -268,7 +268,7 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
|
|
268
268
|
end
|
269
269
|
end
|
270
270
|
decode_buffer(client_ip_address, client_address, client_port, codec, proxy_address,
|
271
|
-
proxy_port, tbuf)
|
271
|
+
proxy_port, tbuf, socket)
|
272
272
|
end
|
273
273
|
rescue EOFError
|
274
274
|
@logger.debug? && @logger.debug("Connection closed", :client => peer)
|
@@ -284,13 +284,14 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
|
|
284
284
|
ensure
|
285
285
|
# catch all rescue nil on close to discard any close errors or invalid socket
|
286
286
|
socket.close rescue nil
|
287
|
-
flush_codec(codec, client_ip_address, client_address, client_port)
|
287
|
+
flush_codec(codec, client_ip_address, client_address, client_port, socket)
|
288
288
|
end
|
289
289
|
|
290
|
-
def enqueue_decorated(event, client_ip_address, client_address, client_port)
|
290
|
+
def enqueue_decorated(event, client_ip_address, client_address, client_port, socket)
|
291
291
|
event.set(HOST_FIELD, client_address) unless event.get(HOST_FIELD)
|
292
292
|
event.set(HOST_IP_FIELD, client_ip_address) unless event.get(HOST_IP_FIELD)
|
293
293
|
event.set(PORT_FIELD, client_port) unless event.get(PORT_FIELD)
|
294
|
+
event.set(SSLSUBJECT_FIELD, socket.peer_cert.subject.to_s) if socket && @ssl_enable && @ssl_verify && event.get(SSLSUBJECT_FIELD).nil?
|
294
295
|
decorate(event)
|
295
296
|
@output_queue << event
|
296
297
|
end
|
@@ -22,7 +22,7 @@ class DecoderImpl
|
|
22
22
|
tbuf = init_first_read(channel_addr, tbuf)
|
23
23
|
end
|
24
24
|
@tcp.decode_buffer(@ip_address, @address, @port, @codec,
|
25
|
-
@proxy_address, @proxy_port, tbuf)
|
25
|
+
@proxy_address, @proxy_port, tbuf, nil)
|
26
26
|
end
|
27
27
|
|
28
28
|
def copy
|
@@ -30,7 +30,7 @@ class DecoderImpl
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def flush
|
33
|
-
@tcp.flush_codec(@codec, @ip_address, @address, @port)
|
33
|
+
@tcp.flush_codec(@codec, @ip_address, @address, @port, nil)
|
34
34
|
end
|
35
35
|
|
36
36
|
private
|
Binary file
|
data/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.0.
|
1
|
+
5.0.5
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-tcp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.5
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,7 +163,7 @@ files:
|
|
163
163
|
- logstash-input-tcp.gemspec
|
164
164
|
- spec/inputs/tcp_spec.rb
|
165
165
|
- spec/spec_helper.rb
|
166
|
-
- vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/5.0.
|
166
|
+
- vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/5.0.5/logstash-input-tcp-5.0.5.jar
|
167
167
|
- version
|
168
168
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
169
169
|
licenses:
|