We are collecting CloudTrail logs from multiple AWS accounts (“b”, “c”) into an S3 bucket in the log-archive AWS account “A.”
The S3 bucket structure in the log-archive account is as follows:
<bucket_name>/<organization_id>/AWSLogs/<account_id>/CloudTrail/<region>/<yyyy>/<mm>/<dd>/<file_name>.json.gz
We’ve tried various options in ossec.conf (such as aws_account_id and aws_organization_id, path), but each time we change the settings we encounter different errors, including “Returned exit code 1.”
Best Regards.
Lucas.