Issues

Select view

Select search mode

 
18 of 18

Grok throws match undefined on false:FalseClass

Description

Grok regexp threw exception exception undefined method match for false:FalseClass

This message is repeated many times in my logs.

As far as I understand this can only be either line
logstash/lib/logstash/filters/grok.rb:317 or 330

and that the private function match(grok, field, match) must have been called with 'grok' as false and not the type the function is expecting.

Not entirely sure why though. Also changing the 'warn' macro so we take the exception object and return the backtrace in the log would be helpful.

Attachments

1
  • 28 Jan 2014, 11:13 AM

Gliffy Diagrams

Details

Assignee

Reporter

Affects versions

Created December 16, 2013 at 2:13 PM
Updated March 25, 2015 at 5:42 AM

Activity

Show:

Stefan Kutzke April 30, 2014 at 9:52 AM

I'm using logstash-1.4.0-1_c82dc09.noarch.rpm. Modifying the files /opt/logstash/lib/logstash/filters/grok.rb and /opt/logstash/spec/filters/grok.rb based on this patch solved the problem for me.

Kristian Köhler March 21, 2014 at 2:32 PM

Same problem in Version 1.4.0
"Applying the patch" solved the problem (there are some differences in the code)

Alf Lervåg January 28, 2014 at 11:13 AM

This seems to fix the issue.

Alf Lervåg January 28, 2014 at 9:22 AM

I am seeing this issue in 1.3.3

Martin Dengler January 16, 2014 at 11:14 AM

I am seeing this issue still in 1.3.2