How does cPanel get user's FTP log?
Greetings,
I am quite puzzled as to how cPanel extracts the FTP logs for a certain domain name in a hosting account. In the "Raw Access" menu the user can download the access logs for his domain(s) but he can also download the FTP log for the specific domain name.
How does that work?
I can see that the URL address follows this structure:
I checked the server's /usr/local/cpanel/base directory and I cannot find a file or directory called getftpaccesslog. it also appears that this is not one of cPanel's scripts that are located in /usr/local/cpanel/scripts as I cannot find it there as well. Additionally, it does not seem to be generating it on the fly since I have used FTP only for one of my domain names (user@example.com) and it knows which domain has FTP logs because it shows a link titled domain2083/cpsess2314468124/getftpaccesslog/ftpaccesslog_ftp.example.com_11_7_2016.gz. Could someone please clarify how this works? Are the FTP logs stored somewhere on the server? The FTP logs are not to be found in /etc/httpd/domlogs/ where the access log reside.
https://[host]/[SESSION_ID]/getftpaccesslog/ftpaccesslog_ftp.example.com_11_7_2016.gzI checked the server's /usr/local/cpanel/base directory and I cannot find a file or directory called getftpaccesslog. it also appears that this is not one of cPanel's scripts that are located in /usr/local/cpanel/scripts as I cannot find it there as well. Additionally, it does not seem to be generating it on the fly since I have used FTP only for one of my domain names (user@example.com) and it knows which domain has FTP logs because it shows a link titled domain2083/cpsess2314468124/getftpaccesslog/ftpaccesslog_ftp.example.com_11_7_2016.gz. Could someone please clarify how this works? Are the FTP logs stored somewhere on the server? The FTP logs are not to be found in /etc/httpd/domlogs/ where the access log reside.
-
Hello, Check to see if the following option is enabled on this system under the "Stats and Logs" tab in "WHM >> Tweak Settings": Keep master FTP log file Here's a description of this option: Keep Apache"s domlogs/ftpxferlog after it has been separated into each domain name"s FTP log. The Apache domlogs directory in EasyApache 4 is located at: /var/log/apache2/domlogs/ Thank you. 0 -
Hi, The option you mentioned is checked (enabled). 0 -
The The cPanel Log Files - cPanel Knowledge Base - cPanel Documentation page might help 0 -
Hello, cPanel automatically writes the file into an archived format for download. It's handled through cpsrvd and isn't something you can do manually. Here's the entry in /usr/local/cpanel/logs/access_log when this happens: 1.2.3.4 - test01 [11/09/2016:20:34:38 -0000] "GET /cpsess12345678/getftpaccesslog/ftpaccesslog_ftp.test01.com_11_9_2016.gz HTTP/1.1" 200 0 "https://1.2.3.4:2083/cpsess12345678/frontend/paper_lantern/raw/index.html"
Thank you.0 -
Thank you for the reply - got all the information I needed. You can consider this topic as finished. 0 -
Also, one more question. How often does cPanel update the FTP log files? 0 -
Also, one more question. How often does cPanel update the FTP log files?
Hello, Logs are processed every 24 hours by default, but you can change this setting via: "WHM Home " Server Configuration " Statistics Software Configuration" Thank you.0
Please sign in to leave a comment.
Comments
8 comments