# S3 output event per file

**URL:** <https://discuss.elastic.co/t/s3-output-event-per-file/262037>\
**Category:** Logstash\
**Created:** [January 24, 2021, 3:16pm UTC](https://discuss.elastic.co/t/s3-output-event-per-file/262037 "2021-01-24T15:16:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunflower](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@Sunflower](https://discuss.elastic.co/u/Sunflower)\
**Post date:** [January 24, 2021, 3:16pm UTC](https://discuss.elastic.co/t/s3-output-event-per-file/262037/1 "2021-01-24T15:16:21Z")

</div>

Hi,

I'm using the S3 output plugin and I noticed that I'm receiving files that include multiple events per file.  
How can I create a file for each event?  
I saw the option to limit the file size but I'm not sure it is good enough.

Thank you.

---

<div class="post-metadata">

**Author:** ![Sunflower](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@Sunflower](https://discuss.elastic.co/u/Sunflower)\
**Post date:** [January 26, 2021, 12:23pm UTC](https://discuss.elastic.co/t/s3-output-event-per-file/262037/2 "2021-01-26T12:23:56Z")

</div>

I did some testing, it seems like it aggregates events that were sent to the logstash at the same second. However, I need it to create a new S3 file for each event, even if there were several events at the same second.

---

<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:** [February 23, 2021, 12:24pm UTC](https://discuss.elastic.co/t/s3-output-event-per-file/262037/3 "2021-02-23T12:24:21Z")

</div>

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