Ensure line codec can be found in example ruby filter (#12042)

Fixes elastic/logstash#12041

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
This commit is contained in:
vijairaj 2020-06-26 18:42:57 +05:30 committed by Joao Duarte
parent 659ef33f72
commit 734ec04186

View file

@ -25,7 +25,7 @@ class LogStash::Codecs::<%= classify(plugin_name) %> < LogStash::Codecs::Base
config :append, :validate => :string, :default => ', Hello World!'
def register
@lines = LogStash::Codecs::Line.new
@lines = LogStash::Plugin.lookup("codec", "line").new
@lines.charset = "UTF-8"
end # def register