Unable to create new document/event in logstash Ruby filter using yield

Your code says yeild, not yield. But that shoudn't even be necessary, as new_event_block.call(generated) should send the new event already: https://www.elastic.co/guide/en/logstash/current/plugins-filters-ruby.html#_inline_ruby_code (I've done that myself in the past without yield)