1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

log rotation problem for maillog

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by bobiemac, Mar 3, 2010.

  1. bobiemac

    bobiemac New Pleskian

    22
    73%
    Joined:
    Jan 17, 2004
    Messages:
    11
    Likes Received:
    0
    Hi,

    The mail log rotation on one of our servers stooped working. i checked the /etc/psa/logrotate.conf and see that it is still configured to run every day.

    Any ideas on where to look to find out why it stopped working?

    Is there a way to force the rotation from a shell command?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Logrotation process related to gathering statistics in Plesk. It works only after statistics, because statistics will not be collected if logs is rotated already. There is maintenance script in cronjob /etc/cron.daily/50plesk-daily:

    # install_statistics
    /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1

    You can use it or just use /usr/local/psa/admin/sbin/statistics (--help option for details)
    Logs will be rotated after statistics calculation.
     
  3. JAOrihuela

    JAOrihuela New Pleskian

    24
    23%
    Joined:
    Jan 5, 2004
    Messages:
    12
    Likes Received:
    0
    We are having the same problem. We manually compressed the mail log file that is getting to big and log stopped.
    After restarting syslog service the log file started to gather information again but log rotate still does not work. Cron jobs have had no changes also.
     
Loading...