We have our infrastructure set up in AWS, and we are monitoring our AWS environment with wazuh. We are encountering issues while configuring vpc-flow logs. Our wazuh manager is hosted on a server within one of the accounts(Account A). When attempting to configure vpc-flow logs for Account A using an S3 bucket and cloudtrail log group, we were successful. However, we are facing challenges when configuring vpc-flow logs for other accounts, for example, Account B. Below, I have listed the various approaches we have attempted.
1. We attempted to configure vpc-flow logs in the S3 bucket hosted in Account B and tried configuring them in the wazuh manager by providing full access. However, we were unable to see the security events.
2. We pushed the vpc-flow logs from Account-B to the S3 bucket which hosted in Account- A, where the wazuh manager is located. We attempted to monitor the logs in wazuh, but were unsuccessful, even with full permissions granted to the bucket.