On October 19, 2021, we have enabled single-sign-on for our Plesk Support Center to provide a seamless login/account experience. This implies that you’ll be able to use a single account across any of our web-facing properties.
If you had already registered your account at MyPlesk.com/Plesk360/Platform360 please use one for login. Otherwise please re-register it using the same email address as your existing Zendesk login (support account). It’s essential that you use the same email address on our support center to ensure that your tickets stay attached to the same account.

Logs are not being rotated for a domain in Plesk

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

     

    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

Please sign in to leave a comment.

Have more questions? Submit a request