Log Locations: Difference between revisions

From Psygen Wiki
Jump to navigation Jump to search
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 3: Line 3:
Common Log Locations:
Common Log Locations:


= cPanel =


== Apache ==
== Apache ==
=== EA3 ===
'''Apache Access Logs:''' <br />
&nbsp; /usr/local/apache/logs/access_log


'''Domain access logs:''' <br />
'''Domain access logs:''' <br />
Line 17: Line 23:
'''SuPHP audit log:''' <br />
'''SuPHP audit log:''' <br />
&nbsp; /usr/local/apache/logs/suphp_log
&nbsp; /usr/local/apache/logs/suphp_log
=== EA4 ===
'''Domlogs:'''<br />
<code>/var/log/apache2/domlogs/</code>
'''Error log:'''<br />
<code>/var/log/apache2/error_log</code>
'''suPHP Error log:'''<br />
<code>/etc/apache2/logs/suphp_log</code>


== cPanel ==
== cPanel ==
'''Service status:''' <br />
&nbsp; /var/log/chkservd.log


'''Service status:''' <br />
'''Service status:''' <br />
Line 28: Line 43:
'''Access and user actions:''' <br />
'''Access and user actions:''' <br />
&nbsp; /usr/local/cpanel/logs/access_log
&nbsp; /usr/local/cpanel/logs/access_log
'''Cpanel Error Logs:''' <br />
&nbsp; /usr/local/cpanel/logs/error_log
== CSF and LFD Logs ==
'''LFD logs:'''<br />
&nbsp; /var/log/lfd.log
'''CSF Errors:'''<br />
<code>/etc/csf/csf.error</code>
== Database Logs ==
'''MySQL database logs:''' <br />
/var/log/mysqld.log <br />
/var/lib/mysql/$(HOSTNAME).err
'''PostgreSQL database logs:''' <br />
&nbsp; /var/log/pgsql


== Exim ==
== Exim ==
Line 48: Line 84:
&nbsp; /var/log/maillog <br />
&nbsp; /var/log/maillog <br />
&nbsp; /var/log/messages
&nbsp; /var/log/messages
'''Mailman Logs:''' <br />
&nbsp; /usr/local/cpanel/3rdparty/mailmain/logs
== PHP-FPM ==
<code>/opt/cpanel/ea-php$VERSION/root/usr/var/log/php-fpm/error.log</code> - Logs for the Master Process/daemon
<code>/home/$cpuser/logs/domain_tld.php.error.log</code> - Logs for the pool/php code. What logs here? Errors specifically related to the PHP code, so PHP fatal errors, notices, deprecation warnings are all logged here, but it is reliant on PHP's error_reporting configuration, which is E_ALL & ~E_NOTICE by default.
Top sites hitting PHP-FPM limits:
<code>grep max /opt/cpanel/ea-php*/root/usr/var/log/php-fpm/error.log | awk '{print $5}' | sort | uniq -c | sort -rn | head</code>


== System ==
== System ==


'''Cron:''' <br />
'''Cron:''' <br />
&nbsp; /var/log/cron  
&nbsp; /var/log/cron
 
'''Ftp Logs:''' <br />
&nbsp; /var/log/messages <br />
&nbsp; /var/log/xferlog (symlinked to /usr/local/apache/domlogs/ftpxferlog)


'''Most other logs:''' <br />
'''Most other logs:''' <br />
&nbsp; /var/log/messages
&nbsp; /var/log/messages


'''MySQL database logs:''' <br />
'''MySQL:'''<br />
/var/lib/mysql/<hostname>.err<br />
/var/log/mysqld.log
/var/log/mysqld.log


'''SSH Logs:'''<br />
&nbsp; /var/log/secure
== Additional cPanel Logs ==
<pre>
Log file location                  Description
Auto-SSL Logs                /var/cpanel/logs/autossl
Cpanel installation logs    /var/log/cpanel-install.log
Cpanel License Logs          /usr/local/cpanel/logs/license_log
Cpanel Login Logs            /usr/local/cpanel/logs/login_log
cPHulk Brute Force Logs      /usr/local/cpanel/logs/cphulkd.log
Cpanel/WHM Accounting (account creations, deletions, etc) Logs    /var/cpanel/accounting.log
Cpanel Bandwidth Logs        /var/cpanel/bandwidth/(account user name)
Cpanel/WHM Service monitor Logs    /var/log/chkservd.log
Cpanel Stats Daemon Logs    /usr/local/cpanel/logs/stats_log
Cpanel backup Logs          /usr/local/cpanel/logs/cpbackup
cPanel backup transport logs: /usr/local/cpanel/logs/cpbackup_transporter/
Update (UPCP) Log          /var/cpanel/updatelogs/update-(TIMESTAMP).log
cPanel/WHM webalizer/awstats logs    /usr/local/cpanel/logs/stats_log
cPanel/WHM version checking    /usr/local/cpanel/version


SquirrelMail    /var/cpanel/squirrelmail
RoundCube        /var/cpanel/roundcube/log
Horde            /var/cpanel/horde/log


== Full List of cPanel Logs ==
tailwatchd log    /usr/local/cpanel/logs/tailwatch_log
EasyApache 3 Build Logs     /usr/local/cpanel/logs/easy/apache/
EA4 Update logs            /usr/local/cpanel/logs/packman/migrate_ea3_to_ea4...


<pre>
Tomcat Logs         /usr/local/jakarta/tomcat/logs/catalina.err /usr/local/jakarta/tomcat/logs/catalina.out
S.No    log file location    Description
 
1    Cpanel installation logs    /var/log/cpanel-install.log
ModSecurity Logs   /usr/local/apache/logs/modsec_audit.log /usr/local/apache/logs/modsec_debug_log
2    Cpanel Access Logs    /usr/local/cpanel/logs/access_log
 
3    Cpanel Error Logs    /usr/local/cpanel/logs/error_log
Named/Bind (DNS) logs    /var/log/messages
4    Cpanel License Logs    /usr/local/cpanel/logs/license_log
5    Cpanel Login Logs    /usr/local/cpanel/logs/login_log
6    cPHulk Brute Force Logs    /usr/local/cpanel/logs/cphulkd.log
7    Cpanel/WHM Accounting (account creations, deletions, etc) Logs    /var/cpanel/accounting.log
8    Cpanel Bandwidth Logs    /var/cpanel/bandwidth/(account user name)
9    Cpanel/WHM Service monitor Logs    /var/log/chkservd.log
10    Cpanel Stats Daemon Logs    /usr/local/cpanel/logs/stats_log
11    Cpanel backup Logs    /usr/local/cpanel/logs/cpbackup
12    Update (UPCP) Log    /var/cpanel/updatelogs/update-(TIMESTAMP).log
13    cPanel/WHM webalizer/awstats logs    /usr/local/cpanel/logs/stats_log
14    SquirrelMail    /var/cpanel/squirrelmail
15    RoundCube    /var/cpanel/roundcube/log
16    Horde    /var/cpanel/horde/log
17    tailwatchd log    /usr/local/cpanel/logs/tailwatch_log
18    EasyApache Build Logs    /usr/local/cpanel/logs/easy/apache/
19    Apache Access Logs    /usr/local/apache/logs/access_log
20    Apache Error Logs    /usr/local/apache/logs/error_log
21    Domain Access Logs    /usr/local/apache/domlogs/domain.com
22    Ftp Logs    /var/log/messages /var/log/xferlog (symlinked to /usr/local/apache/domlogs/ftpxferlog)
23    Exim Sent/received    /var/log/exim_mainlog
24    Rejected mail logs    /var/log/exim_rejectlog
25    Unexpected/Fatal Error Log    /var/log/exim_paniclog
26    Courier, Dovecot, SpamAssassin & IMAP    /var/log/maillog
27    Incoming mail queue    /var/spool/exim/input/
28    Mailman Logs    /usr/local/cpanel/3rdparty/mailmain/logs
29    mysql logs    /val/log/mysqld.log /var/lib/mysql/$(HOSTNAME).err
30    Tomcat Logs     /usr/local/jakarta/tomcat/logs/catalina.err /usr/local/jakarta/tomcat/logs/catalina.out
31    Cron Logs    /var/log/cron
32    ModSecurity Logs     /usr/local/apache/logs/modsec_audit.log /usr/local/apache/logs/modsec_debug_log
33    Named/Bind (DNS) logs    /var/log/messages
34    PostgreSQL database server logs    /var/log/pgsql
35    cPanel/WHM version checking    /usr/local/cpanel/version
36    SSH Logs    /var/log/secure
</pre>
</pre>


== References ==
= Plesk =
 
== Apache ==
 
'''Global Access and Error logs:'''<br />
<code>/var/log/httpd/</code>
 
'''Domain logs:'''<br />
<code>/var/www/vhosts/<domain>/logs </code>
 
 
== nginx ==
 
Error log:<br />
<code>/var/log/nginx/error.log</code>
 
Access log:<br />
<code>/var/log/nginx/access.log</code>
 
Domain logs:<br />
<code>/var/www/vhosts/<domain>/logs/proxy_access*_log </code>
 
 
== Mail==
 
'''Mail log:'''<br />
<code>/usr/local/psa/var/log/maillog</code>
 
 
== Plesk ==
 
'''Error log:'''<br />
<code>/var/log/sw-cp-server/error_log</code><br />
and<br />
<code>/var/log/sw-cp-server/sw-engine.log</code>
 
'''Access log:'''<br />
<code>/usr/local/psa/admin/logs/httpsd_access_log</code>
 
'''Panel log:'''<br />
<code>/usr/local/psa/admin/logs/panel.log</code>
 
'''Install/Upgrade logs:'''<br />
<code>/var/log/plesk/install/</code>
 
'''Front-end logs:'''<br />
<code>/var/log/plesk/sw-cp-server/</code>
 
= References =
 
Plesk documentation:<br />
[https://support.plesk.com/hc/en-us/articles/213403509-Plesk-for-Linux-services-logs-and-configuration-files-|Plesk Documentation - Logs]
 


cPanel Log Locations Poster:
cPanel Log Locations Poster:<br />
[[File:Loglocationsposter.jpg|400px|thumb|left|cPanel Log Locations Poster]]
[[File:Loglocationsposter.jpg|400px|thumb|left | cPanel Log Locations Poster]]

Latest revision as of 00:00, 21 October 2022

Common Log Locations:

cPanel

Apache

EA3

Apache Access Logs:
  /usr/local/apache/logs/access_log

Domain access logs:
  /usr/local/apache/domlogs/<DOMAIN>

Site and service error logs:
  /usr/local/apache/logs/error_log

SuExec audit log:
  /usr/local/apache/logs/suexec_log

SuPHP audit log:
  /usr/local/apache/logs/suphp_log


EA4

Domlogs:
/var/log/apache2/domlogs/

Error log:
/var/log/apache2/error_log

suPHP Error log:
/etc/apache2/logs/suphp_log

cPanel

Service status:
  /var/log/chkservd.log

Access and user actions:
  /usr/local/cpanel/logs/access_log

Cpanel Error Logs:
  /usr/local/cpanel/logs/error_log


CSF and LFD Logs

LFD logs:
  /var/log/lfd.log

CSF Errors:
/etc/csf/csf.error

Database Logs

MySQL database logs:
/var/log/mysqld.log
/var/lib/mysql/$(HOSTNAME).err

PostgreSQL database logs:
  /var/log/pgsql

Exim

(see exim )

Fatal errors:
  /var/log/exim_paniclog

Incoming mail queue:
  /var/spool/exim/input

Exim Messages rejected based on ACLs or other policies:
  /var/log/exim_rejectlog

Exim Delivery and receipt:
  /var/log/exim_mainlog

IMAP, POP login attempts, transactions, fatal errors and spam scoring:
  /var/log/maillog
  /var/log/messages

Mailman Logs:
  /usr/local/cpanel/3rdparty/mailmain/logs


PHP-FPM

/opt/cpanel/ea-php$VERSION/root/usr/var/log/php-fpm/error.log - Logs for the Master Process/daemon

/home/$cpuser/logs/domain_tld.php.error.log - Logs for the pool/php code. What logs here? Errors specifically related to the PHP code, so PHP fatal errors, notices, deprecation warnings are all logged here, but it is reliant on PHP's error_reporting configuration, which is E_ALL & ~E_NOTICE by default.

Top sites hitting PHP-FPM limits:

grep max /opt/cpanel/ea-php*/root/usr/var/log/php-fpm/error.log | awk '{print $5}' | sort | uniq -c | sort -rn | head

System

Cron:
  /var/log/cron

Ftp Logs:
  /var/log/messages
  /var/log/xferlog (symlinked to /usr/local/apache/domlogs/ftpxferlog)

Most other logs:
  /var/log/messages

MySQL:
/var/lib/mysql/<hostname>.err
/var/log/mysqld.log

SSH Logs:
  /var/log/secure

Additional cPanel Logs

Log file location                  Description
Auto-SSL Logs                /var/cpanel/logs/autossl
Cpanel installation logs     /var/log/cpanel-install.log
Cpanel License Logs          /usr/local/cpanel/logs/license_log
Cpanel Login Logs            /usr/local/cpanel/logs/login_log
cPHulk Brute Force Logs      /usr/local/cpanel/logs/cphulkd.log
Cpanel/WHM Accounting (account creations, deletions, etc) Logs     /var/cpanel/accounting.log
Cpanel Bandwidth Logs        /var/cpanel/bandwidth/(account user name)
Cpanel/WHM Service monitor Logs     /var/log/chkservd.log
Cpanel Stats Daemon Logs     /usr/local/cpanel/logs/stats_log
Cpanel backup Logs           /usr/local/cpanel/logs/cpbackup
cPanel backup transport logs: /usr/local/cpanel/logs/cpbackup_transporter/
Update (UPCP) Log           /var/cpanel/updatelogs/update-(TIMESTAMP).log

cPanel/WHM webalizer/awstats logs     /usr/local/cpanel/logs/stats_log
cPanel/WHM version checking     /usr/local/cpanel/version

SquirrelMail     /var/cpanel/squirrelmail
RoundCube        /var/cpanel/roundcube/log
Horde            /var/cpanel/horde/log

tailwatchd log     /usr/local/cpanel/logs/tailwatch_log
EasyApache 3 Build Logs     /usr/local/cpanel/logs/easy/apache/
EA4 Update logs             /usr/local/cpanel/logs/packman/migrate_ea3_to_ea4...

Tomcat Logs         /usr/local/jakarta/tomcat/logs/catalina.err /usr/local/jakarta/tomcat/logs/catalina.out

ModSecurity Logs    /usr/local/apache/logs/modsec_audit.log /usr/local/apache/logs/modsec_debug_log

Named/Bind (DNS) logs     /var/log/messages

Plesk

Apache

Global Access and Error logs:
/var/log/httpd/

Domain logs:
/var/www/vhosts/<domain>/logs


nginx

Error log:
/var/log/nginx/error.log

Access log:
/var/log/nginx/access.log

Domain logs:
/var/www/vhosts/<domain>/logs/proxy_access*_log


Mail

Mail log:
/usr/local/psa/var/log/maillog


Plesk

Error log:
/var/log/sw-cp-server/error_log
and
/var/log/sw-cp-server/sw-engine.log

Access log:
/usr/local/psa/admin/logs/httpsd_access_log

Panel log:
/usr/local/psa/admin/logs/panel.log

Install/Upgrade logs:
/var/log/plesk/install/

Front-end logs:
/var/log/plesk/sw-cp-server/

References

Plesk documentation:
Documentation - Logs


cPanel Log Locations Poster:

cPanel Log Locations Poster