CPanel Log file locations.

I often have to look over CPanel log files, and sometimes it just slips my mine on where they are located and what is contained in each one of them. Thought I would put together a listing of the files/locations and what is contained in them. Hope others find this useful.
CPanel stores it’s log files in the /usr/local/cpanel/logs directory. Below is a list of the common log files that are located in a cPanel server along with a short description.

access_log — cPanel access log for both cPanel and WHM
error_log — cPanel error log
license_log — cPanel license log
login_log — cPanel user login log
melange.log — cPanel chat server log
melange_msg.log — cPanel chat server message log
stats_log — cPanel web stats log

Also cPanel keeps other system logs in the /var/log/ directory.

bandwidth — cPanel total bandwidth logs for the entire server
chkservd.log — chkservd service log
clamav — clamav log directory
cpupdate.log — cPanel update log
exim_mainlog — Exim email transaction log
exim_paniclog — Exim error log
exim_rejectlog — Exim rejected email log
maillog — Transaction and login log for all mail services
pgsql — PostgreSQL log file

cPanel keeps the domain weblogs in the /usr/local/cpanel/domlogs directory for each domain name that is hosted on the server. This includes FTP transfer logs for each account.

Published by

Shelby DeNike

System Administrator, Designer, and Developer. WordPress consultant. Founder of sd3labs, LLC . Sr. System Administrator for Laughing Squid Web Hosting