# Logstash s3 backup directory structure

**URL:** <https://discuss.elastic.co/t/logstash-s3-backup-directory-structure/144112>\
**Category:** Logstash\
**Created:** [August 13, 2018, 9:00am UTC](https://discuss.elastic.co/t/logstash-s3-backup-directory-structure/144112 "2018-08-13T09:00:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradmunz](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@bradmunz](https://discuss.elastic.co/u/bradmunz)\
**Post date:** [August 13, 2018, 9:00am UTC](https://discuss.elastic.co/t/logstash-s3-backup-directory-structure/144112/1 "2018-08-13T09:00:08Z")

</div>

It looks like the s3 input plugin just dumps processed files into the root of the backup\_to\_dir specified. Is there anyway the plugin can keep the original file structure from S3 when backing up the file?

What if there are 2 files with the same name in different paths in the S3 bucket? Will the last one overwrite the first one when it's backed up locally?

---

<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:** [September 10, 2018, 9:00am UTC](https://discuss.elastic.co/t/logstash-s3-backup-directory-structure/144112/2 "2018-09-10T09:00:11Z")

</div>

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