Skip to content

Commit 81e8877

Browse files
committed
Fixes codec issue with logstash 7.2.0 and above
The fix is originally authored by João Duarte logstash-plugins#55 Signed-off-by: Tero Saarni <[email protected]>
1 parent 30b8f91 commit 81e8877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/logstash/outputs/syslog.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def register
131131
if ssl?
132132
@ssl_context = setup_ssl
133133
end
134-
135-
if @codec.instance_of? LogStash::Codecs::Plain
134+
135+
if @codec.class.to_s == "LogStash::Codecs::Plain"
136136
if @codec.config["format"].nil?
137137
@codec = LogStash::Codecs::Plain.new({"format" => @message})
138138
end

0 commit comments

Comments
 (0)