Article ID: 1577
Last updated: 17 Feb, 2023
How to check Cpanel LogsReference KB: https://docs.cpanel.net/knowledge-base/cpanel-product/the-cpanel-log-files/ Website Raw Access LogOption1: To check website access log from Cpanel front-end, login to the Cpanel of the particular domain & find the "Raw Access" tab under "Metrics" Section The Raw Access log will of the domain will be available download as zip file, Click on the Zip files to download & extract to check the log Option 2: To check website access log from the server SSH terminal, login to the server with SSH & go to the below provide domain log location [root@host ~]# cd /etc/apache2/logs/domlogs/
check the log of the website [root@host domlogs]# tail akhandjyoti.com
51.158.76.214 - - [17/Feb/2023:06:02:25 +0530] "HEAD / HTTP/1.1" 301 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36" 207.46.13.209 - - [17/Feb/2023:06:33:14 +0530] "GET /contact-us HTTP/1.1" 301 246 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/103.0.5060.134 Safari/537.36" 159.65.144.82 - - [17/Feb/2023:06:35:00 +0530] "GET /.env HTTP/1.1" 301 240 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36" 159.65.144.82 - - [17/Feb/2023:06:35:00 +0530] "POST / HTTP/1.1" 301 236 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36" Website Error LogOption 1: To check website error log from Cpanel front-end, login to the Cpanel of the particular domain & find the "Error" tab under "Metrics" Section Check the error logs Option 2: To check the website error log from server SSH terminal, login to the server with SSH & go to the below provide domain error log location [root@host ~]# cd /usr/local/apache/logs/
Check the error logs [root@host logs]# tail error_log
[Fri Feb 17 12:54:42.990371 2023] [proxy_fcgi:error] [pid 31130] [client 172.71.102.33:0] AH01071: Got error 'Primary script unknown' [Fri Feb 17 12:54:43.458245 2023] [proxy_fcgi:error] [pid 31130] [client 172.71.102.33:0] AH01071: Got error 'Primary script unknown' [Fri Feb 17 12:54:43.925414 2023] [proxy_fcgi:error] [pid 31130] [client 172.71.102.33:0] AH01071: Got error 'Primary script unknown' [Fri Feb 17 12:54:44.367908 2023] [proxy_fcgi:error] [pid 31130] [client 172.71.102.33:0] AH01071: Got error 'Primary script unknown' FTP Access LogOption 1: To check the FTP Access logs, login to the WHM Panel & Search for "FTP Raw Log Download" & after that click on the domain name and download the log Option 2: To check the FTP logs from server SSH terminal, login to the server with SSH & go to the below provide FTP log location [root@host ]# cd /etc/apache2/logs/domlogs
Check the FTP logs on the "ftpxferlog" file [root@host ]# tail ftpxferlog
FTP Login LogsTo check the FTP login logs, connect to the server via SSH & go to the below log location [root@host ~]# cd /var/log
Check the FTP Login logs on the "messages" file [root@host log]# tail messages
Feb 17 13:35:01 host systemd: Started Session 190590 of user akhandcom. Feb 17 13:35:01 host imunify-notifier[5621]: starting, version 2.1.4-2 Feb 17 13:35:01 host imunify-notifier[5621]: waiting for a connection/timeout Feb 17 13:35:01 host imunify-notifier[5621]: new connection accepted Cpanel Access LogsCpanel Access logs by Cpanel users can be checked through SSH terminal, go to the below Cpanel Access log location [root@host ~]# cd /usr/local/cpanel/logs/
And the check the log on the file "access_log" [root@host logs]# tail access_log
115.96.159.104 - akhandcom [02/17/2023:07:15:40 -0000] "POST /cpsess0975707275/json-api/cpanel HTTP/1.1" 200 0 "https://akhandjyoti.com:2083/cpsess0975707275/frontend/jupiter/filemanager/index.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" "s" "-" 2083
115.96.159.104 - akhandcom [02/17/2023:07:10:23 -0000] "POST /cpsess0975707275/3rdparty/phpMyAdmin/index.php HTTP/1.1" 200 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" "s" "-" 2083
Cpanel MaillogOption 1: To check the Maillog from the Cpanel front-end, login to the Cpanel of the domain & & find the "Track Delivery" tab under "Email" Section
Option 2: To check the maillog from SSH terminal, go to the below location: [root@host ~]# cd /var/log
Check the log on the file "maillog" [root@host log]# tail maillog
Feb 17 14:39:11 host dovecot: lmtp(22669): Disconnect from local: Logged out (state=READY) Feb 17 14:40:13 host dovecot: lmtp(27675): Connect from local Feb 17 14:40:14 host dovecot: lmtp([email protected])<27675><5Rm0HXVE72MbbAAAy1a2fQ>: msgid=<[email protected]>: saved mail to INBOX Feb 17 14:40:14 host dovecot: lmtp(27675): Disconnect from local: Logged out (state=READY)
This article was:
Report an issue
Article ID: 1577
Last updated: 17 Feb, 2023
Revision: 11
Views: 80
Comments: 0
Tags
|