Plesk

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

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:

    /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 "HKLMSOFTWAREPLESKPSA ConfigConfig" /v SaveFTPLogsDirectory /t REG_SZ /d "path to directory" /reg:32 /f

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

Exit mobile version