logstash-output-tcp 4.0.2 → 5.0.0
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 +2 -2
- data/docs/index.asciidoc +0 -14
- data/lib/logstash/outputs/tcp.rb +1 -7
- data/logstash-output-tcp.gemspec +1 -1
- metadata +2 -4
- data/spec/integration/outputs/tcp_spec.rb +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33832228e84147b200d4990c9db0adb2a6fbf429
|
4
|
+
data.tar.gz: 5d73ae191a32fd1aa1f7ef8abfb7e5beae7abae3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fdd50c6733b0759a4812ae4055cc3243f284cd4feba9a1ea82845ba44cbc5f883e1239e76df263194f554888416a1eb8ac86d4f7e5bb814dedadb85f5fabdb9
|
7
|
+
data.tar.gz: 2dffc020cb86fb0ebf758ce19c98a51e229686aa0d6c496d3ad40da40727c595874b1a2335aac83f43fd9bac4f10ab967eba129698b9c6bea014fcfafeec7ea0
|
data/CHANGELOG.md
CHANGED
data/docs/index.asciidoc
CHANGED
@@ -62,20 +62,6 @@ output plugins.
|
|
62
62
|
When mode is `server`, the address to listen on.
|
63
63
|
When mode is `client`, the address to connect to.
|
64
64
|
|
65
|
-
[id="plugins-{type}s-{plugin}-message_format"]
|
66
|
-
===== `message_format` (DEPRECATED)
|
67
|
-
|
68
|
-
* DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
|
69
|
-
* Value type is <<string,string>>
|
70
|
-
* There is no default value for this setting.
|
71
|
-
|
72
|
-
The format to use when writing events to the file. This value
|
73
|
-
supports any string and can include `%{name}` and other dynamic
|
74
|
-
strings.
|
75
|
-
|
76
|
-
If this setting is omitted, the full json representation of the
|
77
|
-
event will be written as a single line.
|
78
|
-
|
79
65
|
[id="plugins-{type}s-{plugin}-mode"]
|
80
66
|
===== `mode`
|
81
67
|
|
data/lib/logstash/outputs/tcp.rb
CHANGED
@@ -51,13 +51,7 @@ class LogStash::Outputs::Tcp < LogStash::Outputs::Base
|
|
51
51
|
# SSL key passphrase
|
52
52
|
config :ssl_key_passphrase, :validate => :password, :default => nil
|
53
53
|
|
54
|
-
|
55
|
-
# supports any string and can include `%{name}` and other dynamic
|
56
|
-
# strings.
|
57
|
-
#
|
58
|
-
# If this setting is omitted, the full json representation of the
|
59
|
-
# event will be written as a single line.
|
60
|
-
config :message_format, :validate => :string, :deprecated => true
|
54
|
+
config :message_format, :validate => :string, :obsolete => "This setting is obsolete. The event will be formatted according to the codec used"
|
61
55
|
|
62
56
|
class Client
|
63
57
|
public
|
data/logstash-output-tcp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-tcp'
|
4
|
-
s.version = '
|
4
|
+
s.version = '5.0.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Write events over a TCP socket."
|
7
7
|
s.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"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-tcp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,7 +87,6 @@ files:
|
|
87
87
|
- docs/index.asciidoc
|
88
88
|
- lib/logstash/outputs/tcp.rb
|
89
89
|
- logstash-output-tcp.gemspec
|
90
|
-
- spec/integration/outputs/tcp_spec.rb
|
91
90
|
- spec/outputs/tcp_spec.rb
|
92
91
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
93
92
|
licenses:
|
@@ -116,5 +115,4 @@ signing_key:
|
|
116
115
|
specification_version: 4
|
117
116
|
summary: Write events over a TCP socket.
|
118
117
|
test_files:
|
119
|
-
- spec/integration/outputs/tcp_spec.rb
|
120
118
|
- spec/outputs/tcp_spec.rb
|
@@ -1,42 +0,0 @@
|
|
1
|
-
require "logstash/devutils/rspec/spec_helper"
|
2
|
-
require "socket"
|
3
|
-
require "stud/task"
|
4
|
-
|
5
|
-
describe "TCP Output" do
|
6
|
-
|
7
|
-
let(:port) { rand(6233) }
|
8
|
-
subject { LogStash::Plugin.lookup("output", "tcp").new({ "host" => "localhost", "port" => port }) }
|
9
|
-
let(:event) { LogStash::Event.new({'message' => '183.60.215.50 - - [11/Sep/2014:22:00:00 +0000] "GET /scripts/netcat-webserver HTTP/1.1" 200 182 "-" "Mozilla/5.0 (compatible; EasouSpider; +http://www.easou.com/search/spider.html)"', '@timestamp' => LogStash::Timestamp.at(0) }) }
|
10
|
-
let(:req_buffer) { Array.new }
|
11
|
-
let(:input) { LogStash::Plugin.lookup("input", "tcp").new({ "host" => "localhost", "port" => port }) }
|
12
|
-
let(:queue) { Array.new }
|
13
|
-
|
14
|
-
def thread_it
|
15
|
-
Thread.new do
|
16
|
-
begin
|
17
|
-
server = TCPServer.open(2000)
|
18
|
-
loop do
|
19
|
-
c = server.accept
|
20
|
-
line = c.gets
|
21
|
-
print line
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
# it "should #register without errors" do
|
29
|
-
# expect { subject.register }.to_not raise_error
|
30
|
-
# end
|
31
|
-
|
32
|
-
# TCP server
|
33
|
-
it "should successfully send to a listening TCP server" do
|
34
|
-
subject.register
|
35
|
-
|
36
|
-
t = thread_it
|
37
|
-
t.run
|
38
|
-
|
39
|
-
subject.receive(event)
|
40
|
-
sleep 5
|
41
|
-
end
|
42
|
-
end
|