If I understand the pattern, you have AWS S3 bucket named data-access-cloudtrail-logs and there are folders and subfolders underneath it. You would like to read the logs from specific subfolder, say ap-south-1.
In this case, you will want to first configure Bucket ARN setting in the integration with the ARN of the S3 bucket. It could be something like this: arn:aws:s3:::data-access-cloudtrail-logs. You can find your bucket ARN from AWS console.
Then, if you want to read from certain folder (prefix), then you should enter this folder path into Bucket List Prefix integration setting with a value AWSLogs/123456789/CloudTrail/ap-south-1 assuming thats the correct folder path in your S3 bucket. This integration setting can be found sometimes in Advanced options.
For the question regarding debugging, you can change log level to DEBUG and also extract the agent diagnostics to view the logs.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.