• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Log Rotation Preferences

E

edispah

Guest
Hi

Im using Plesk 7.5.3 on Fedora Core 2, I have Log Rotation Preferences set for a domain as follows

Log Rotation Condition - by time "Daily"
Maximum number of log files - 5
Compress log files - ticked
Send processed log files to e-mail [email protected]

(where [email protected] is a real email)

Everything works except the email to the user?

Ive checked in /usr/local/psa/etc/logrotate.d/domain.co.uk and the files looks ok it has at the end of each section

mail [email protected]

The strange thing is when I first enabled this I did get an email with the stats 3 days running but for the last 3 days ive not had any?

Any ideals? Thanks in advance

Paul
 
Hi

Some further info, I can see theres a mysql table called logrotation.

It has the following set

id = 2
period_type = by_time
period = daily
max_number_of_logfiles = 5
compress_enable = true
email = [email protected]
turned_on = true

The log files are rotating fine and the timestamps of the rotated logs are always around 4.20am which is when the cron.daily stuff is running.

Im just not getting the email, ive checked /usr/local/psa/var/log/maillog and no emails are being sent at that time so its not like its sending the email?

Anyone any ideals, ive got a customer who requires the log to be emailed but I just cant get it working.

Paul
 
Back
Top