Use s3 backup_bucket option and create folder structure dynamically

Hi,

I am trying to read AWS cloudtrail logs stored in S3 bucket in the below folder structure
AWSLogs/accountnumber/CloudTrail/region/year/month/day and send the processed files to the backup S3 bucket using s3 backup_bucket option. But I want to store the backup files also in the same folder structure, since there will be lot of regions i cannot create individual config file for each region. Is there any way to get the region dynamically and use it in backup_add_prefix option?

Thanks

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