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

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?