Save Cloudwatch logs to my Personal Bucket - AWS

Asked

Viewed 74 times

1

Fala galera,

I would like to save my Cloudwatch logs inside my personal Bucket and not in the standard Amazon Bucket so I can download these logs more easily.

Has anyone ever done it or knows if it’s possible?

Thanks in advance!

  • You can make a script that runs in your instance and that uploads the logs to a personal Bucket. Using AWS CLI is very simple to do this (aws s3 cp ..., or aws s3 sync ...). It’s also simple to set up a cron job to run your script.

  • This would generate an excessive transfer cost.

  • What transfer cost do you refer to exactly? Cost of "Data Transfer IN" from S3 is 0. Cost of transferring output from EC2 to S3 in the same region is also 0. Thus, there is no transfer cost with the strategy I commented above, as long as your Bucket is in the same region as your instance. On the other hand, if you are talking about server outside of EC2, you would have the cost of the outgoing traffic from your DC, which would be the same as you sending the logs to Cloudwatch -- again, there is no additional cost. References: http://aws.amazon.com/s3/pricing/ and http://aws.amazon.com/ec2/pricing/ .

1 answer

0


I contacted Amazon and they confirmed that unfortunately it is not yet possible to save Cloudwatch logs in a specific Bucket. Any new information I notice here.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.