mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
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:
parent
659ef33f72
commit
734ec04186
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue