Collect multiple events for processing in the filter and send to output (bulk)

You may be able to do it using an aggregate filter. This thread and the ones it links to may help you with some ideas.