[Spce-user] log files not being moved to old directory

Alex Lutay alutay at sipwise.com
Mon Mar 25 12:13:34 EDT 2019


Hi,

Logs have to be rotated by 'logrotate' from cron.

1) Is your cron running?
> systemctl status cron

2) Does the cron triggers logrotate?
> grep logrotate /var/log/cron.log

3) check errors in /var/log/syslog for timestamp from step 2.
There might be some errors, etc.

4) try to rotate logs manually:
> run-parts -v --report /etc/cron.daily/logrotate
pay attention to "run-parts: executing /etc/cron.daily/logrotate"

Have fun!

On 3/23/19 2:06 AM, Andy Clark wrote:
> log files about 10 days back stopped moving to old directory and are
> becoming large
> 
> how to fix?

-- 
Alex Lutay




More information about the Spce-user mailing list