Skip to content

Instantly share code, notes, and snippets.

@KamilMroczek
Created November 4, 2013 00:45
Show Gist options
  • Save KamilMroczek/7296539 to your computer and use it in GitHub Desktop.
Save KamilMroczek/7296539 to your computer and use it in GitHub Desktop.
Stock log rotate script on EC2.
/var/log/tomcat7/catalina.out /var/log/tomcat7/localhost_access_log.txt {
size 1M
missingok
rotate 5
compress
notifempty
copytruncate
dateext
dateformat -%s
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment