Reputation: 14869
I have an Elastic Beanstalk instance I am using to run a web application. It is a t2.small instance with a default volume type and size. I am running a Tomcat 8.5 container.
I am setting up my logback logging and I am trying to decide the maximum size to allow for the logs (in bytes). I have already set a maximum of 30 days logging to keep. I know I can change the root volume size. However
Upvotes: 1
Views: 1599
Reputation: 1241
How large in my default volume? And/or how can I find this out directly?
If my logs filled up the volume, how would EBS respond? Would it autoscale?
Follow the below Steps to enable S3 log rotation:
To enable log rotation to Amazon S3, navigate to the Software Configuration section of the Configuration page in the environment management console. Under Log Options, select Enable log file rotation to Amazon S3 and then choose Apply. Instances in your environment will attempt to upload logs that have been rotated once per hour.
To upload rotated logs to Amazon S3, the instances in your environment must have an instance profile with permission to write to your Elastic Beanstalk Amazon S3 bucket. These permissions are included in the default instance profile that Elastic Beanstalk prompts you to create when you launch an environment in the Elastic Beanstalk console for the first time.
Upvotes: 5