Breaking changes in ruby filter plugin to ther version of 5.0.1

(jamal ) #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

(Magnus B├Ąck) #2

Here's what you're looking for:

(jamal ) #3

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

(Andrew) #5

corrected for LS5+ would look something like this:

Have you tried that?

(system) #6

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