Overview of AWS cross-account log shipping architecture
To ship logs from multiple AWS accounts to Logz.io, a two-tier account structure is used:
- Landing Account: Acts as the central hub. It receives logs from all sending accounts and forwards them to Logz.io. It hosts the Kinesis stream, the Destination (which encapsulates the stream), and a Lambda function triggered by the stream.
- Sending Accounts: These accounts host the AWS services generating logs. They use CloudWatch subscription filters to push logs to the Destination located in the landing account.
If logs need to be shipped from multiple AWS regions, additional Destinations must be created in the landing account for each required region.