logstash-filter-ruby icon indicating copy to clipboard operation
logstash-filter-ruby copied to clipboard

Improve error message when exception happens

Open ThomasdOtreppe opened this issue 9 years ago • 0 comments

System info:

  • Ubuntu 14.04.3 64 bit
  • Logstash 2.1.0 from Elastic deb repo

Due to date parsing issue, I got the following in my logs:

{:timestamp=>"2015-11-25T13:50:28.229000-0700", :message=>"Ruby exception occurred: can't dup NilClass", :level=>:error}

After debugging, I figured that it came from the Ruby filter because parsing failed (and the field I was working on wasn't set.

It would be nice if the error indicated it came from the ruby filter, that would help debugging a lot.

ThomasdOtreppe avatar Nov 25 '15 21:11 ThomasdOtreppe