I know they are storing them somewhere. Maybe a DynamoDB or S3 bucket?
I'd like to use Cloudwatch as a log archive for my EC2 instances, and set it up so that they are passed to Loggly for viewing/sorting/ etc.
I know Loggly recently released a way to grab logs from S3 buckets (https://www.loggly.com/docs/s3-logs/) but I can't seem to find the source of these logs on the AWS side.
My thoughts so far are:
- Maybe I could set up a Metric/Alarm to pass all incoming logs to Loggly?
- I could possibly gain access to where AWS stores these Cloudwatch Logs?
- Set up a cron somewhere that bounces Cloudwatch logs to an S3 bucket, and go from there?
- Use Cloudwatch API calls in a cron to directly grab logs and send them to Loggly through an HTTP post etc.