Hi all. We have trying to migrate our config (1.5) to newer (5.2) version of logstash . And we have some problem with multiline plugin. so here is an example of our config and log error.
filter {
if [type] == "osb_server" {
multiline {
pattern => "(^#)"
negate => true
what => "previous"
}
}
}
Error:
[2017-03-03T09:44:13,539][ERROR][logstash.agent ] Cannot load an invalid configuration {:reason=>"Couldn't find any filter plugin named 'multiline'. Are you sure this is correct? Trying to load the multiline filter plugin resulted in this error: Problems loading the requested plugin named multiline of type filter. Error: NameError NameError"}
[2017-03-03T09:44:16,533][ERROR][logstash.plugins.registry] Problems loading a plugin with {:type=>"filter", :name=>"multiline", :path=>"logstash/filters/multiline", :error_message=>"NameError", :error_class=>NameError, :error_backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/plugins/registry.rb:221:innamespace_lookup'", "/usr/share/logstash/logstash-core/lib/logstash/plugins/registry.rb:157:in
legacy_lookup'", "/usr/share/logstash/logstash-core/lib/logstash/plugins/registry.rb:133:inlookup'", "/usr/share/logstash/logstash-core/lib/logstash/plugins/registry.rb:175:in
lookup_pipeline_plugin'", "/usr/share/logstash/logstash-core/lib/logstash/plugin.rb:129:inlookup'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:95:in
plugin'", "(eval):64:ininitialize'", "org/jruby/RubyKernel.java:1079:in
eval'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:65:ininitialize'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:308:in
reload_pipeline!'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:111:inreload_state!'", "org/jruby/RubyHash.java:1342:in
each'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:108:inreload_state!'", "org/jruby/ext/thread/Mutex.java:149:in
synchronize'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:107:inreload_state!'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:75:in
execute'", "org/jruby/RubyProc.java:281:incall'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/interval.rb:20:in
interval'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:75:inexecute'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:271:in
execute'", "org/jruby/RubyProc.java:281:incall'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/task.rb:24:in
initialize'"]}
[2017-03-03T09:44:16,535][ERROR][logstash.agent ] Cannot load an invalid configuration {:reason=>"Couldn't find any filter plugin named 'multiline'. Are you sure this is correct? Trying to load the multiline filter plugin resulted in this error: Problems loading the requested plugin named multiline of type filter. Error: NameError NameError"}
Do we need to install filter plugin ? i think it goes from the box..