Breaking changes in ruby filter plugin to ther version of 5.0.1

I upgrade logstash from 2.1.0 to 5.0.1 version i have error in filter-plugin-rubby.
here is the code that i had in version 2.1.0 and work correctlly
ruby {
code => "require 'digest/md5';
event['@metadata']['computed_id'] = Digest::MD5.hexdigest(event['message'])"

I have studied break changes but i cant make it correct, any one could help me

Here's what you're looking for:

thank you for answearing but I checked the link but i cant solve the problomes if you see the code and say me what is the problome, please

corrected for LS5+ would look something like this:

Have you tried that?

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