Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Where are the FTP Logs?

Discussion in 'General Discussion' started by vikelidiskostas, Feb 18, 2018.

  1. vikelidiskostas

    Joined:
    Sep 4, 2016
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. kwdamp

    kwdamp Active Member

    Joined:
    Dec 7, 2017
    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    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.
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,183
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. vikelidiskostas

    Joined:
    Sep 4, 2016
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks for the reply.

    I selected the "Keep master FTP log file". Does that mean that the contents on this file will never be deleted again?

    If so, is it possible to rotate this master FTP log file?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,183
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice