Search code examples
apacheamazon-web-servicesamazon-elastic-beanstalkaccess-log

retrieving Apache log files from AWS Beanstalk


I know that Beanstalk's Snapshot Logs can give you a recent overview of the httpd/access_log files from among the EC2 instances under the ELB for that environment. But does anyone know a good way to get all the logs?

It's a production environment, so I want to do the processing elsewhere. But I don't want to (for obvious reasons) configure root sftp and go around collecting the files manually.

I think I had read something about configuring logging to S3?


Solution

  • In the "Configuration" tab for an Environment, under "Software Configuration", there is a checkbox for enabling log file rotation to S3. These are stored in an S3 bucket used specifically for Elastic Beanstalk.

    enter image description here