logstash-output-tcp 3.0.1 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -6
- data/lib/logstash/outputs/tcp.rb +1 -17
- data/logstash-output-tcp.gemspec +2 -2
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74e0474b7a4e935ba8952b80b5b4169f2b472730
|
4
|
+
data.tar.gz: bb736f1d5f6ff2c3cf870262d24c10f7f400df79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dd3dc38a97f307321cbdaeebe0a3410c3df4fcc3d5c15d2f7c959788b350e3faad77a17eb87209693c06b7a47bd5c58e725e2056972d905cd01d697a1527721
|
7
|
+
data.tar.gz: bbbe0a64aca9112bc5f9db6fdc6a467957f1078c7e17efb8144afff94f2705e834baeb6f66882a0e1feddd6f98912fe7f8f6912991950d57cad8a4c60f217fb6
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,21 @@
|
|
1
|
+
## 3.1.1
|
2
|
+
- Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
|
3
|
+
|
4
|
+
## 3.1.0
|
5
|
+
- breaking,config: Remove deprecated config `message_format`
|
6
|
+
|
1
7
|
## 3.0.1
|
2
|
-
|
8
|
+
- Republish all the gems under jruby.
|
9
|
+
|
3
10
|
## 3.0.0
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
11
|
+
- Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
|
12
|
+
|
13
|
+
## 2.0.4
|
14
|
+
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
15
|
+
|
16
|
+
## 2.0.3
|
17
|
+
- New dependency requirements for logstash-core for the 5.0 release
|
18
|
+
|
9
19
|
## 2.0.0
|
10
20
|
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
11
21
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
data/lib/logstash/outputs/tcp.rb
CHANGED
@@ -22,7 +22,7 @@ class LogStash::Outputs::Tcp < LogStash::Outputs::Base
|
|
22
22
|
# When mode is `server`, the port to listen on.
|
23
23
|
# When mode is `client`, the port to connect to.
|
24
24
|
config :port, :validate => :number, :required => true
|
25
|
-
|
25
|
+
|
26
26
|
# When connect failed,retry interval in sec.
|
27
27
|
config :reconnect_interval, :validate => :number, :default => 10
|
28
28
|
|
@@ -30,14 +30,6 @@ class LogStash::Outputs::Tcp < LogStash::Outputs::Base
|
|
30
30
|
# `client` connects to a server.
|
31
31
|
config :mode, :validate => ["server", "client"], :default => "client"
|
32
32
|
|
33
|
-
# The format to use when writing events to the file. This value
|
34
|
-
# supports any string and can include `%{name}` and other dynamic
|
35
|
-
# strings.
|
36
|
-
#
|
37
|
-
# If this setting is omitted, the full json representation of the
|
38
|
-
# event will be written as a single line.
|
39
|
-
config :message_format, :validate => :string, :deprecated => true
|
40
|
-
|
41
33
|
class Client
|
42
34
|
public
|
43
35
|
def initialize(socket, logger)
|
@@ -132,14 +124,6 @@ class LogStash::Outputs::Tcp < LogStash::Outputs::Base
|
|
132
124
|
|
133
125
|
public
|
134
126
|
def receive(event)
|
135
|
-
|
136
|
-
|
137
|
-
#if @message_format
|
138
|
-
#output = event.sprintf(@message_format) + "\n"
|
139
|
-
#else
|
140
|
-
#output = event.to_hash.to_json + "\n"
|
141
|
-
#end
|
142
|
-
|
143
127
|
@codec.encode(event)
|
144
128
|
end # def receive
|
145
129
|
end # class LogStash::Outputs::Tcp
|
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 = '3.
|
4
|
+
s.version = '3.1.1'
|
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"
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
|
21
21
|
|
22
22
|
# Gem dependencies
|
23
|
-
s.add_runtime_dependency "logstash-core-plugin-api", "
|
23
|
+
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
24
24
|
|
25
25
|
s.add_runtime_dependency 'logstash-codec-json'
|
26
26
|
s.add_runtime_dependency 'stud'
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-tcp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.60'
|
19
|
+
- - "<="
|
17
20
|
- !ruby/object:Gem::Version
|
18
|
-
version: '2.
|
21
|
+
version: '2.99'
|
19
22
|
name: logstash-core-plugin-api
|
20
23
|
prerelease: false
|
21
24
|
type: :runtime
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.60'
|
30
|
+
- - "<="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
32
|
+
version: '2.99'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|
@@ -103,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
109
|
version: '0'
|
104
110
|
requirements: []
|
105
111
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.6.3
|
107
113
|
signing_key:
|
108
114
|
specification_version: 4
|
109
115
|
summary: Write events over a TCP socket.
|