Posts

Showing posts with the label amazon-cloudwatch

How to move Cloudwatch logs across regions?

How to move Cloudwatch logs across regions? I'm currently exploring an AWS setup using Lambda@Edge to capture metrics from viewer requests. Since I cannot control where the logs will end up (it simple ends up in Cloudwatch in the region closest to the request origin) I somehow need to transfer logs between regions. I currently have an ElasticSearch cluster in eu-west-1 where I would ultimately want to ingest all my logs, from all regions. What is the recommended approach to move logs in CloudWatch from one region into and ElasticSearch cluster in another region? 1 Answer 1 I think you have two options. You can stream all of your log groups to lambda and have lambda post to ElasticSearch (repeat for every region). You can stream your log groups to ElasticSearch as if it were in another account (repeat for every region). This would require a public endpoint for your ElasticSearch cluster. ...