Skip to content

Instantly share code, notes, and snippets.

@KamilMroczek
Created November 4, 2013 00:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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