# Write every incoming data to separate files in S3

**URL:** <https://discuss.elastic.co/t/write-every-incoming-data-to-separate-files-in-s3/89745>\
**Category:** Logstash\
**Created:** [June 16, 2017, 3:59pm UTC](https://discuss.elastic.co/t/write-every-incoming-data-to-separate-files-in-s3/89745 "2017-06-16T15:59:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Polocapt](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Polocapt](https://discuss.elastic.co/u/Polocapt)\
**Post date:** [June 16, 2017, 3:59pm UTC](https://discuss.elastic.co/t/write-every-incoming-data-to-separate-files-in-s3/89745/1 "2017-06-16T15:59:29Z")

</div>

Hi,

I've been trying to put file in S3 using the logstash-output-plugin using Logstash 5.4.1. I could be wrong, which is why I'm asking this here. From what I've seen, your data will be "rotated" (pushed to S3) only when either a certain time (time\_file) has elapsed or a certain size (size\_file) has been matched. However, I would like to push each incoming data into a separate file in S3 regardless of the time or the size.

Is there a way to push each data in a separate file in S3 using the S3 output plugin or is there any workarounds?

---

<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:** [July 14, 2017, 3:59pm UTC](https://discuss.elastic.co/t/write-every-incoming-data-to-separate-files-in-s3/89745/2 "2017-07-14T15:59:34Z")

</div>

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