Hi, I have been using a Ruby filter for some of by information, however since I have upgraded to 5 these no longer work. I have tried to understand exactly what changes under https://www.elastic.co/guide/en/logstash/5.x/breaking-changes.html however without success. Could I kindly get assistance with the change of the filter to be compatible again with Logstash 5?
Here are my two filters I use: ruby{ code=>"event['Duration_m'] = (event['Duration_s'] / 60.00).round(2)" }
Hans,
the bottom of the page you list ([Breaking changes]https://www.elastic.co/guide/en/logstash/5.x/breaking-changes.html) summarizes what you are facing... see the bottom of the link, under:
'Ruby Filter and Custom Plugin Developers'. It's a nice summary of what changed in ruby filter and how you need to modify your code.
The link Magnus lists goes into the change in more detail.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.