Sep 4, 2016
21
4
3
Greece
cPanel Access Level
Root Administrator
Twitter
Hello everyone,

I am struggling to understand where FTP logs are stored and how they get rotated. I am not talking about FTP authentications as they are stored in /var/log/messages. I am ok with that. I am talking about the logging of file transfers.

Yesterday i uploaded a file using a cpanel FTP account and the transfer was successfully logged (in real time) in file:
Code:
/etc/apache2/logs/domlogs/ftpxferlog
Today the entry is missing. Initially i thought that the file rotated but i cannot find a rotated file in the same dir.

where has it gone?
 

kwdamp

Active Member
Dec 7, 2017
37
3
8
usa
cPanel Access Level
Root Administrator
I think settings may vary, but on our server the logs are stored in each account.

The path would be: /home/myaccount/logs/

And the actual ftp log files are in the folder gzipped as: ftp.myaccountdomain.com-ftp_log-Feb-18

Where myaccount and myaccountdomainname are obviously replaced by your actual account details.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

The previous post is correct. Additionally, note the cpanellogd process separates each account's FTP activity into each domain name’s individual FTP log when statistics are processed (every 24 hours by default). If you prefer to preserve the /etc/apache2/logs/domlogs/ftpxferlog file through statistic generations, then you can enable the following option under the "Stats and Logs" tab in "WHM >> Tweak Settings":

Keep master FTP log file

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
I selected the "Keep master FTP log file". Does that mean that the contents on this file will never be deleted again?
That's correct. You'd need to manually setup a configuration file for it in the /etc/logrotate.d/ directory if you wanted to rotate that log file after enabling the option.

Thank you.