This information is important in order to keep your server in good situation by avoiding the size of several log files to be increasing day by day. It will be used the well known linux utility logrotate. You can see details here. After configuring the logrotate in your server the log files will stop increasing and your server will be in good health according to this issue.
Step-by-step guide
- Check that logrotate utility is installed in your system
- Create a configuration file for managing the log files produces by openncp servers (see below)
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
}
...
... |
...