title: How to change settings for logrotate in AWS Elastic Beanstalk docker instances
body: <p>I realized that the default logrotation for AWS EB's docker is 5 files of 10M each. That's not enough for me. </p>
  
  <p>I found the config at /etc/logrotate.elasticbeanstalk.hourly/logrotate.elasticbeanstalk.applogs.conf and it reads as follows:</p>
  
  <pre><code>  $ cat /etc/logrotate.elasticbeanstalk.hourly/logrotate.elasticbeanstalk.applogs.conf
    /var/log/eb-docker/containers/eb-current-app/* {
    size 10M
    rotate 5
    missingok
    compress
    notifempty
    copytruncate
    dateext
    dateformat %s
    olddir /var/log/eb-docker/containers/eb-current-app/rotated
    }
  </code></pre>
  
  <p>I'd like to change that to a larger size, let's say 5 files of a gig each. How to accomplish this?</p>
  
  <p>I'm familiar with the .ebextensions framework, and I think the answer lies by writing an ebextension. The preferred answer changes just the "size" parameter in the existing configuration, without writing in a whole new file, because I'd like to take advantage in any future changes that AWS makes in their docker offering.</p>