Log rotation in Plesk is not working

Created:

2016-11-16 13:26:02 UTC

Modified:

2017-08-16 18:32:19 UTC

3

Was this article helpful?


Have more questions?

Submit a request

Log rotation in Plesk is not working

Applicable to:

  • Plesk 10.x for Linux
  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 11.x for Linux
  • Plesk 11.x for Windows
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Symptoms

It seems that log rotation does not work: there are some logs with the size exceeded the one allowed in the log rotation settings Websites & Domains > Logs > Log Rotation .

Resolution

Such situation is possible, it does not mean that log rotation does not work correctly.

If the log rotation condition is set as size Plesk rotates logs when their size exceeds a particular limit, the log rotation is being triggered by the Daily Maintenance script. So if the size of log file exceeds a particular limit but the Daily Maintenance is not started yet that log file is not being rotated (until Daily Maintenance).

To get additional information regarding log rotation please refer to Advanced Administration Guide, Plesk for Linux, Log Rotation .

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Esha Singh

    How do I know that `Daily Maintenance script` is working?

    my current log rotation configuration: http://prntscr.com/fspwvm

    Though I have set it to 3 kb the log file size is 3.9 GB.
    What am I missing?

    Thank you in advance :)

  • 0
    Avatar
    Bulat Tsydenov

    @Esha, There is a possibility that web statistics is not calculated for the domain and therefore log rotation does not take place. Please, try to run `/usr/local/psa/admin/bin/web_statistic_executor --calculate-domain example.com` specifying the domain in question, I think you will see exact error message why statistics is not calculated. Then, try to search for a KB article with a solution in our Help Centre.

Please sign in to leave a comment.