# Configure the Custom AWS Logs integration to collect logs only from one folder in the AWS s3 bucket

**URL:** <https://discuss.elastic.co/t/configure-the-custom-aws-logs-integration-to-collect-logs-only-from-one-folder-in-the-aws-s3-bucket/378916>\
**Category:** Elastic Security\
**Created:** [June 5, 2025, 12:55pm UTC](https://discuss.elastic.co/t/configure-the-custom-aws-logs-integration-to-collect-logs-only-from-one-folder-in-the-aws-s3-bucket/378916 "2025-06-05T12:55:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristina\_Marletta\_Li](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cristina_marletta_li/32/137793_2.png) [@Cristina\_Marletta\_Li](https://discuss.elastic.co/u/Cristina_Marletta_Li)\
**Post date:** [June 5, 2025, 12:55pm UTC](https://discuss.elastic.co/t/configure-the-custom-aws-logs-integration-to-collect-logs-only-from-one-folder-in-the-aws-s3-bucket/378916/1 "2025-06-05T12:55:16Z")

</div>

Hi all,  
We have an S3 bucket that contains two folders.  
Our goal is to collect **only** the files under the `folder1`, ignoring the `folder2` folder entirely. How can we configure Custom AWS Logs to ingest only the contents of folder folder1?
