title: Centos/Linux setting logrotate to maximum file size for all logs
body: <p>we use logrotate and it runs daily ... now we have had some situations where logs have grown significantly (read: gigbaytes) and killing our server. So now we would like to set a maximum filesize to the logs .... </p>
  
  <p>can I just add this to the logrotate.conf?</p>
  
  <blockquote>
    <p>size 50M</p>
  </blockquote>
  
  <p>and would it then apply to all log files? Or do I need to set this on a per log basis?</p>
  
  <p>Or any other advice?</p>
  
  <p>(ps. I understand that if you want to be notified is  the log grows like described and what we want to do is not ideal - but it is better than not being able to logon anymore because there is no space available)</p>
  
  <p>thanks, Sean</p>