Log Locations: Difference between revisions

From Psygen Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


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


'''Domain access logs:''' <br />
'''Domain access logs:''' <br />
Line 21: Line 24:


'''Service status:''' <br />
'''Service status:''' <br />
&nbsp; /var/log/chkservd.log
&nbsp; /var/log/chkservd.log  
 
'''Access and user actions:''' <br />
&nbsp; /usr/local/cpanel/logs/access_log
 
'''Cpanel Error Logs:''' <br />
&nbsp; /usr/local/cpanel/logs/error_log
 
 
== Database Logs ==


'''Service status:''' <br />
'''MySQL database logs:''' <br />
&nbsp; /var/log/chkservd.log
/var/log/mysqld.log <br />
/var/lib/mysql/$(HOSTNAME).err
 
'''PostgreSQL database logs:''' <br />
&nbsp; /var/log/pgsql


'''Access and user actions:''' <br />
&nbsp; /usr/local/cpanel/logs/access_log


== Exim ==
== Exim ==
Line 48: Line 62:
&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


== 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 />
'''SSH Logs:'''<br />
/var/log/mysqld.log
&nbsp; /var/log/secure
 




Line 65: Line 86:


<pre>
<pre>
S.No    log file location     Description
Log file location         Description
1    Cpanel installation logs    /var/log/cpanel-install.log
Cpanel installation logs    /var/log/cpanel-install.log
2    Cpanel Access Logs    /usr/local/cpanel/logs/access_log
Cpanel License Logs         /usr/local/cpanel/logs/license_log
3    Cpanel Error Logs    /usr/local/cpanel/logs/error_log
Cpanel Login Logs           /usr/local/cpanel/logs/login_log
4    Cpanel License Logs     /usr/local/cpanel/logs/license_log
cPHulk Brute Force Logs     /usr/local/cpanel/logs/cphulkd.log
5    Cpanel Login Logs     /usr/local/cpanel/logs/login_log
Cpanel/WHM Accounting (account creations, deletions, etc) Logs    /var/cpanel/accounting.log
6    cPHulk Brute Force Logs     /usr/local/cpanel/logs/cphulkd.log
Cpanel Bandwidth Logs       /var/cpanel/bandwidth/(account user name)
7    Cpanel/WHM Accounting (account creations, deletions, etc) Logs    /var/cpanel/accounting.log
Cpanel/WHM Service monitor Logs    /var/log/chkservd.log
8    Cpanel Bandwidth Logs     /var/cpanel/bandwidth/(account user name)
Cpanel Stats Daemon Logs    /usr/local/cpanel/logs/stats_log
9    Cpanel/WHM Service monitor Logs    /var/log/chkservd.log
Cpanel backup Logs    /usr/local/cpanel/logs/cpbackup
10    Cpanel Stats Daemon Logs    /usr/local/cpanel/logs/stats_log
Update (UPCP) Log    /var/cpanel/updatelogs/update-(TIMESTAMP).log
11    Cpanel backup Logs    /usr/local/cpanel/logs/cpbackup
cPanel/WHM webalizer/awstats logs    /usr/local/cpanel/logs/stats_log
12    Update (UPCP) Log    /var/cpanel/updatelogs/update-(TIMESTAMP).log
cPanel/WHM version checking     /usr/local/cpanel/version
13    cPanel/WHM webalizer/awstats logs    /usr/local/cpanel/logs/stats_log
 
14     SquirrelMail    /var/cpanel/squirrelmail
SquirrelMail    /var/cpanel/squirrelmail
15    RoundCube     /var/cpanel/roundcube/log
RoundCube       /var/cpanel/roundcube/log
16    Horde     /var/cpanel/horde/log
Horde           /var/cpanel/horde/log
17    tailwatchd log    /usr/local/cpanel/logs/tailwatch_log
 
18    EasyApache Build Logs    /usr/local/cpanel/logs/easy/apache/
tailwatchd log    /usr/local/cpanel/logs/tailwatch_log
19    Apache Access Logs    /usr/local/apache/logs/access_log
EasyApache Build Logs    /usr/local/cpanel/logs/easy/apache/
20    Apache Error Logs    /usr/local/apache/logs/error_log
 
21    Domain Access Logs    /usr/local/apache/domlogs/domain.com
Tomcat Logs         /usr/local/jakarta/tomcat/logs/catalina.err /usr/local/jakarta/tomcat/logs/catalina.out
22    Ftp Logs    /var/log/messages /var/log/xferlog (symlinked to /usr/local/apache/domlogs/ftpxferlog)
 
23    Exim Sent/received    /var/log/exim_mainlog
ModSecurity Logs   /usr/local/apache/logs/modsec_audit.log /usr/local/apache/logs/modsec_debug_log
24    Rejected mail logs    /var/log/exim_rejectlog
 
25    Unexpected/Fatal Error Log    /var/log/exim_paniclog
Named/Bind (DNS) logs    /var/log/messages
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>



Revision as of 00:38, 12 January 2017

Common Log Locations:


Apache

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

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


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


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

SSH Logs:

  /var/log/secure


Full List of cPanel Logs

Log file location          Description
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
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 Build Logs     /usr/local/cpanel/logs/easy/apache/

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

References

cPanel Log Locations Poster:

cPanel Log Locations Poster