How do I consolidate application logs across accounts? #533
-
|
I am trying to consolidate our app logs in to the We have EKS clusters in various accounts and have |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
This is actually a bit tricky to do since CloudWatch Logs doesn’t natively support cross account access, making it a bit of a headache to consolidate the logs. There are a couple of workarounds, but none of them are particularly easy to implement, and we don't really have modules that make the process any easier.
|
Beta Was this translation helpful? Give feedback.
This is actually a bit tricky to do since CloudWatch Logs doesn’t natively support cross account access, making it a bit of a headache to consolidate the logs. There are a couple of workarounds, but none of them are particularly easy to implement, and we don't really have modules that make the process any easier.
Use Lambda and CloudWatch Log Subscription Filters. In this approach, you can create a Lambda function that does the cross account migration process for you. You will want to define a new Lambda function that is able to assume a role in the
logsaccount to push the logs from the app account to a CloudWatch Log Group in thelogsaccount. You can then hook this up to the source L…