Logstash ruby exception

when Embed ruby scripts in the filter
and an error occur as follows:
[ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `filter_method' for #LogStash::Filters::Ruby:0x4cd94f01 Did you mean? filter_matched

the ruby scripts contains:
def register(params)
@message = params["message"]
end
def filter(event)
message=event.get('message')
...

thanks

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