Rotating Catalina.out logs

The Abiquo Catalina.out log can grow quickly in large environments and you may want to consider adding log rotation to this file. This can be done by creating the following file

 

# cat /etc/logrotate.d/abiquo_catalina 
/opt/abiquo/tomcat/logs/catalina.out { 
daily 
missingok 
rotate 20 
compress 
}

You may want to review the Tomcat documentation to adjust the settings to your specific requirements.

Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Abel Boldu

    Steve,

     

    This configuration is not working as expected, as tomcat needs to be restarted in every rotation to re-create the catalina.out:

    /opt/abiquo/tomcat/logs/catalina.out {
    daily
    compress
    create
    rotate 5
    create 0700 root root

    prerotate
    /etc/init.d/tomcat stop
    endscript
    postrotate
    /etc/init.d/tomcat start
    endscript  }

Please sign in to leave a comment.
Powered by Zendesk