# Combining multiple events

**URL:** <https://discuss.elastic.co/t/combining-multiple-events/106756>\
**Category:** Logstash\
**Created:** [November 7, 2017, 9:04pm UTC](https://discuss.elastic.co/t/combining-multiple-events/106756 "2017-11-07T21:04:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vgaas](https://avatars.discourse-cdn.com/v4/letter/v/f14d63/32.png) [@vgaas](https://discuss.elastic.co/u/vgaas)\
**Post date:** [November 7, 2017, 9:04pm UTC](https://discuss.elastic.co/t/combining-multiple-events/106756/1 "2017-11-07T21:04:13Z")

</div>

We are using the http output plugin to store logs into a database. We would like to batch multiple changes from a file into 1 JSON request like so:

```auto
{
    docs: [
        {
            "event": "event"1
        },
        {
            "event": "event"
        }
   ]
}

```

I've searched the forum and I found that the aggregate filter would be useful for this, but I'm not sure how to use it for my use case.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 5, 2017, 9:04pm UTC](https://discuss.elastic.co/t/combining-multiple-events/106756/2 "2017-12-05T21:04:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
