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

**URL:** https://discuss.elastic.co/t/collect-multiple-events-for-processing-in-the-filter-and-send-to-output-bulk/300986
**Category:** Logstash
**Created:** [March 29, 2022, 3:49pm UTC](https://discuss.elastic.co/t/collect-multiple-events-for-processing-in-the-filter-and-send-to-output-bulk/300986 "2022-03-29T15:49:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [March 29, 2022, 4:25pm UTC](https://discuss.elastic.co/t/collect-multiple-events-for-processing-in-the-filter-and-send-to-output-bulk/300986/2 "2022-03-29T16:25:14Z")

</div>

You may be able to do it using an aggregate filter. [This](https://discuss.elastic.co/t/logstash-http-output-plugin-customize-building-json-array-for-batching/275535) thread and the ones it links to may help you with some ideas.

---

_[View the full topic](https://discuss.elastic.co/t/collect-multiple-events-for-processing-in-the-filter-and-send-to-output-bulk/300986)._
