...
Sample Configuration File
Code Block | ||
---|---|---|
| ||
(Adjust the paths to fit your environment) /opt/tomcat-portal/tomcat-7.0.42/logs/catalina.out { copytruncate daily rotate 7 compress missingok size 50M } /opt/tomcat-portal/tomcat-7.0.42/logs/epsos-client-connector.log { copytruncate daily rotate 7 compress missingok size 50M } ... ... |
Info | ||
---|---|---|
| ||
Make sure that the path /opt/tomcat-portal/tomcat-7.0.42/logs/catalina.out above is adjusted to point to your tomcat’s catalina.out daily - rotates the catalina.out daily You can put multiple entries in the previous file in order to include several log files for rotation |
Test Rotation Performance
Code Block | ||
---|---|---|
| ||
sudo logrotate --force /etc/logrotate.d/openncp (openncp is the name of logrotate configuration file) |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...