logo

Main Menu
Home
Products
Tips n Tricks
Download
Contacts
About
Login Form





Lost Password?
Bynari Insight Server logrotate broken prior to 4.2.3 PDF Print E-mail

Upgraded Bynari Insight Server Installations prior to 4.2.3 can suffer from a glitch where the logrotate cron job is not set and log files are not managed very well.

Considering that maillogs alone can reach 100mb in a month and the default is to keep 10 then you can fill up disk space unknowingly.

Upgrading to 4.2.3 should resolve this issue.

However you can add the entry to the cron tab manually. You will need to run crontab -e as root and enter in the line -

0 6 * * * /opt/insight/etc/logrotate.cron >/dev/null 2>&1

The logrotate.conf file is where the time the backup should run, and amounts of backups are kept.(/opt/insight/etc/logrotate.conf)

These entries are needed and can be changed:

missingok
monthly
rotate 10
sharedscripts
compress
start 0

The monthly can be changed to weekly or daily, with the rotate (number) being the amount of logs kept.

By default, this setup rotates logs every month and keeps 9 compressed and 1 uncompressed log file available. You will have to figure out what is best for you.

 
 
logo