Skip to content

Commit 6dfdafd

Browse files
wiibaaSuyog Rao
authored andcommitted
Remove deprecated config for 5.0 (#17)
* remove deprecated config 'message_format' * raise only minor version
1 parent 81c5a89 commit 6dfdafd

File tree

3 files changed

+15
-24
lines changed

3 files changed

+15
-24
lines changed

CHANGELOG.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
## 3.1.0
2+
- breaking,config: Remove deprecated config `message_format`
3+
14
## 3.0.1
2-
- Republish all the gems under jruby.
5+
- Republish all the gems under jruby.
6+
37
## 3.0.0
4-
- 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
5-
# 2.0.4
6-
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
7-
# 2.0.3
8-
- New dependency requirements for logstash-core for the 5.0 release
8+
- 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
9+
10+
## 2.0.4
11+
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
12+
13+
## 2.0.3
14+
- New dependency requirements for logstash-core for the 5.0 release
15+
916
## 2.0.0
1017
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
1118
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895

lib/logstash/outputs/tcp.rb

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,14 @@ class LogStash::Outputs::Tcp < LogStash::Outputs::Base
2222
# When mode is `server`, the port to listen on.
2323
# When mode is `client`, the port to connect to.
2424
config :port, :validate => :number, :required => true
25-
25+
2626
# When connect failed,retry interval in sec.
2727
config :reconnect_interval, :validate => :number, :default => 10
2828

2929
# Mode to operate in. `server` listens for client connections,
3030
# `client` connects to a server.
3131
config :mode, :validate => ["server", "client"], :default => "client"
3232

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-
4133
class Client
4234
public
4335
def initialize(socket, logger)
@@ -132,14 +124,6 @@ def server?
132124

133125
public
134126
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-
143127
@codec.encode(event)
144128
end # def receive
145129
end # class LogStash::Outputs::Tcp

logstash-output-tcp.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22

33
s.name = 'logstash-output-tcp'
4-
s.version = '3.0.1'
4+
s.version = '3.1.0'
55
s.licenses = ['Apache License (2.0)']
66
s.summary = "Write events over a TCP socket."
77
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"

0 commit comments

Comments
 (0)