Logs are not being rotated for domain

Follow

Comments

5 comments

  • Avatar
    Andries Jansen

    CentOS 7.4, Plesk Version 17.5.3 Update #35

    When you've added extra domains to your subscription, check "Websites & Domains/Logs/Manage Log Files"

     

    Then go to "Log Rotation"

     

    When the Maximum number of log files is 0, the log files won't rotate. Change it to eg. 5

    Run /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php

     

  • Avatar
    Robert Asilbekov

    @Andries Jansen

    Thank you for additional details, I've added some details to an already existing article How to configure log rotation for domain?

  • Avatar
    Luis Zubeldia

    And how can i rotate the logs for only one domain?

    # /usr/local/psa/logrotate/sbin/logrotate -v -f /usr/local/psa/etc/logrotate.d/example.com

    this not work for me

  • Avatar
    Luis Zubeldia

    seems that some domains in /usr/local/psa/etc/logrotate.d/ not exist. why?

  • Avatar
    Ivan Postnikov

    Hello @Luis,

    > And how can i rotate the logs for only one domain?

    I have verified the command "/usr/local/psa/logrotate/sbin/logrotate -v -f /usr/local/psa/etc/logrotate.d/example.com", it worked fine.

    What output of the command is shown to you? Could you, please, provide it.

    > seems that some domains in /usr/local/psa/etc/logrotate.d/ not exist. why?

    This is not expected behavior. There is a possibility that such behavior is caused by issue with logrotate execution.

Please sign in to leave a comment.

Have more questions? Submit a request