Logs are not being rotated for a domain in Plesk

Follow

Comments

7 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

     

    0
    Comment actions Permalink
  • 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?

    0
    Comment actions Permalink
  • 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

    0
    Comment actions Permalink
  • Avatar
    Luis Zubeldia

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

    0
    Comment actions Permalink
  • 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.

    0
    Comment actions Permalink
  • Avatar
    Neil Beattie

    As of 9-Mar-2022 on our Plesk servers I have noticed that the access_ssl_log.processed files are growing in size without being rotated. There were also Plesk updates that same day. I tried using the rotation fixes, but it did not help and all of the configs look correct. Is this a new bug?

    1
    Comment actions Permalink
  • Avatar
    Renan Moreira

    Neil Beattie If you applied the fix and the error is still present I believe additional investigation is required, please feel free to open a support ticket so we can check further!

    1
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request