Logstash Random Error

I received this random error in my Logstash logs. My Logstash has been running fine, i'm not sure what could have caused this error.

{:timestamp=>"2016-09-30T14:42:14.342000-0700", :message=>"Exception in pipelineworker, the pipeline stopped processing new events, please check your filter configuration and restart Logstash.", "exception"=>#<TypeError: can't convert nil into String>, "backtrace"=>["org/jruby/RubyString.java:4462:in include?'", "(eval):151:ininitialize'", "org/jruby/RubyArray.java:1613:in each'", "(eval):149:ininitialize'", "org/jruby/RubyProc.java:281:in call'", "(eval):167:ininitialize'", "org/jruby/RubyArray.java:1613:in each'", "(eval):163:ininitialize'", "org/jruby/RubyProc.java:281:in call'", "(eval):93:infilter_func'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:267:in filter_batch'", "org/jruby/RubyArray.java:1613:ineach'", "org/jruby/RubyEnumerable.java:852:in inject'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:265:infilter_batch'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:223:in worker_loop'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:201:instart_workers'"], :level=>:error}

You log snippet has been mangled since you didn't post it as preformatted text. Specifically, "exception"=># should be something like "exception"=>#<error message here>. Also, what does your filter configuration look like?

1 Like

My bad, here it is in preformatted text :

{:timestamp=>"2016-09-30T14:42:14.342000-0700", :message=>"Exception in pipelineworker, the pipeline stopped processing new events, please check your filter configuration and restart Logstash.", "exception"=>#<TypeError: can't convert nil into String>, "backtrace"=>["org/jruby/RubyString.java:4462:ininclude?'", "(eval):151:in initialize'", "org/jruby/RubyArray.java:1613:ineach'", "(eval):149:in initialize'", "org/jruby/RubyProc.java:281:incall'", "(eval):167:in initialize'", "org/jruby/RubyArray.java:1613:ineach'", "(eval):163:in initialize'", "org/jruby/RubyProc.java:281:incall'", "(eval):93:in filter_func'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:267:infilter_batch'", "org/jruby/RubyArray.java:1613:in each'", "org/jruby/RubyEnumerable.java:852:ininject'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:265:in filter_batch'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:223:inworker_loop'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:201:in start_workers'"], :level=>:error}

I guess it found an empty string. Maybe that was the case, since it is giving the error of "can't convert nil into String". My configuration is a bit messy to look at since I have multiple Input/ filter files and one output file.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.