Last active
May 25, 2017 08:26
-
-
Save tuudik/1d00264265dc443e5e3a408c3b3c6f79 to your computer and use it in GitHub Desktop.
MISP2 log rotation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/tomcat6/*.out /var/log/tomcat6/orbeon.log.* /var/log/tomcat6/soap-messages.log { | |
daily | |
rotate 3650 | |
size 10M | |
dateext | |
dateformat -%Y-%m-%d-%s.log | |
compress | |
notifempty | |
missingok | |
copytruncate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's also recommended to switch the appender for orbeon, at the end of
/var/lib/tomcat6/webapps/orbeon/WEB-INF/resources/config/log4j.xml
, comment SingleFileAppender and uncomment RollingFileAppender. Also it's recommended to change priority value fromdebug
toinfo
and change MaxFileSize to10MB
.