Ensure that AWS Elastic Beanstalk environment logs are retained and saved on S3.
Elastic Beanstalk environment logs should be retained in order to keep the logging data for future audits, historical purposes or to track and analyze the EB application environment behavior for a long period of time.
Go to specific environment, select Configuration, edit Software category, and enable Log streaming