• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

logrotate.conf not running

B

Bertan Linson

Guest
It appears as though my /usr/local/psa/etc/logrotate.conf is not running. My maillog is HUGE and I am getting errors because of it.

My logrotate.conf looks like this. Files are not rotating, they are just getting bigger!

include /usr/local/psa/etc/logrotate.d

/usr/local/psa/var/log/xferlog.processed {
missingok
rotate 3
size 10M
compress
nocreate
}

/usr/local/psa/var/log/maillog.processed {
missingok
rotate 3
size 10M
compress
nocreate
}

/usr/local/psa/var/log/psi.log {
missingok
daily
rotate 3
size 10M
compress
nocreate
}

/usr/local/psa/admin/logs/*_log {
weekly
rotate 12
missingok
notifempty
copytruncate
compress
}

/usr/local/psa/var/webalizer.cache {
missingok
rotate 0
size 512M
nocreate
}

Where can I look to insure this runs?
 
Last edited by a moderator:
Plesk Maillog Error - Logs Not Rotated As Expected

I have two CentOS 5.4 servers, both running Plesk 8.6 with identical conf scripts and completely up-to-date via YUM UPDATE. However, one has a huge mail log file that has never been rotated and the other behaves normally. Since both are exclusively managed by Plesk, there seems to be a bug in the server #2 Plesk load. How do I remedy the problem [i.e., get rid of the huge log file that appears to be bogging my system down]?

Details are as follows:

One has a maillog file as expected:
[root@server1 ~]# ls -l /usr/local/psa/var/log/maillog
-rw-r----- 1 root root 1403965 Dec 13 14:21 /usr/local/psa/var/log/maillog
[root@server1 ~]# ls -l /usr/local/psa/var/log/maillog.processed
-rw-r----- 1 root root 3616348 Dec 13 05:17 /usr/local/psa/var/log/maillog.processed

The second server has an enormous log file and no "maillog.processed":
[root@server2 ~]# ls -l /usr/local/psa/var/log/maillog
-rw-r----- 1 root root 612050521 Dec 13 14:07 /usr/local/psa/var/log/maillog
[root@server2 ~]# ls -l /usr/local/psa/var/log/maillog.processed
ls: /usr/local/psa/var/log/maillog.processed: No such file or directory

The config files "/usr/local/psa/etc/logrotate.conf" are identical:

include /usr/local/psa/etc/logrotate.d

/usr/local/psa/var/log/xferlog.processed {
missingok
rotate 3
size 10M
compress
nocreate
}

/usr/local/psa/var/log/maillog.processed {
missingok
rotate 3
size 10M
compress
nocreate
}

/usr/local/psa/var/log/psi.log {
missingok
daily
rotate 3
size 10M
compress
nocreate
}

/usr/local/psa/admin/logs/*_log {
weekly
rotate 12
missingok
notifempty
copytruncate
compress
}

/usr/local/psa/var/webalizer.cache {
missingok
rotate 0
size 512M
nocreate
}
 
Back
Top