Unable to remove log files using Plesk GUI

Created:

2016-11-16 13:19:55 UTC

Modified:

2017-04-24 11:04:06 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to remove log files using Plesk GUI

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.5 for Windows

Symptoms

Unable to remove log files in Domains > example.com > Log Manager : log files as not selectable (grayed out). Therefore, they cannot be deleted.

Cause

Log files cannot be removed from Plesk unless they are zipped/compressed/processed by the statistics module/daily maintenance script. So, only compressed/processed files can be marked and removed.

Resolution

  1. Go to Domains > example.com > Log Manager and set Log Rotation preferences as follows:

  2. Switch log rotation on if it was set to off.

  3. Set the log rotation condition to the maximum chain of log files.
  4. Set the compression settings for the log files.

  5. If the log rotation condition is set to rotate log files by reaching the specified size, wait until log files outgrow this size so it could be processed. Or, run log processing manually:

    Unix:

    # /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com

    Windows:

    C:\\Program Files(x86)\\Parallels\\Plesk\\admin\\bin>statistics.exe --process-domains=example.com
  6. If the log rotation is set to rotate logs on a daily basis, wait until the next rotation time. Or, use the same command from point 2.

  7. After log files are processed, they can be removed.

Additional information

213373009 error_log occupies too much space and not being rotated

Have more questions? Submit a request
Please sign in to leave a comment.