Continuing the discussion from Ruby filter loop through fields in logstash 5? :
="Maxwell_Flanders, post:1, topic:72026"]
have been using a ruby filter to loop through all top-level fields and do a gsub to remove some special characters. I know that in 5.0, the Event API has changed significantly with an impact on ruby filters, namely the use of getters and setters instead of directly changing field values. My
+1 I have the same issue. Did you find a way to solve it ?
Please edit your post and pick a better subject than "7y8ui9o".
You can call to_hash on the event object and get a hash that you can iterate over, like in Logstash 1.x and 2.x.
system
(system)
Closed
March 22, 2018, 10:52am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.