How to access newly created custom events from logstash filter?

I have created four custom events from a single original event in the ruby { } plugin of filter { }.
I dropped the original event ( event.cancel ).

I used yield to create new events.

Now, How do i access these four newly created custom events in the filter { } for further processing.
I mean what name to use for the new event. (like "event" for original event).
These new events go perfectly to output { } but how do i access these events in filter { } after creating them.


Hi Ankur, I'm trying to do something similar. Can you post your ruby filter code please?