Articles in this section

Is it possible to change the default retention of FTP Log files in Plesk?

Plesk for Windows kb: how-to

Applicable to:

  • Plesk for Windows

Question

Is it possible to change the default retention of FTP Log files in Plesk?

Answer

Click on a section to expand

For Linux:
  1. Connect to the server via SSH
  2. Open /usr/local/psa/etc/logrotate.conf in any text editor and change global FTP rotation settings:

    CONFIG_TEXT: /usr/local/psa/var/log/xferlog.processed {
    missingok
    rotate 3
    size 10M
    compress
    nocreate

Note: More information about logrotate options available in the following documentation: Logrotate

For Windows:

It is not possible to change the default retention value for FTP logs. Alternatively, the rotated FTP logs can be saved in a custom directory so that Plesk does not delete them:

  1. Connect to the server via RDP;

  2. Open CMD and add the following key into the registry:

    C:\> REG ADD "HKLM\SOFTWARE\PLESK\PSA Config\Config" /v SaveFTPLogsDirectory /t REG_SZ /d "path to directory" /reg:32 /f

Note: Specify the exact path to the directory like C:\ftplogs

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.