Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

  1. Check that logrotate utility is installed in your system
  2. Create a configuration file for managing the log files produces by openncp servers (see below)

Sample Configuration File

Code Block
languagexml
(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
}
...
...

...