Dedicated Servers
Managed Dedicated Servers
Semi-Dedicated Hosting
Cheap Dedicated Servers
Hyper-V VPS Hosting
Hyper-V Virtual Private Servers
Linux VPS Hosting
VPS Hosting with Root Access
Windows VPS Hosting
Windows VPS Web Hosting
Reseller Hosting
Reseller Hosting India
cPanel Shared Hosting
Linux Shared Web Hosting
Windows Hosting
Windows Shared Web Hosting
Web Hosting Blog
Web Hosting Blog India
Hosting Knowledgebase
Web Hosting Knowledgebase




  15 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 09-01-2008, 11:32 PM
Administrator
 
Join Date: Aug 2006
Location: Nasik / Pune / Mumbai :)
Posts: 28
Send a message via MSN to Viraj Send a message via Yahoo to Viraj
Lightbulb Know cPanel logs in detail !

Applications can log the system activity in two ways, one being according to their autonomous logic & the other through the system's log daemon, well know as syslog..

The syslog daemon's configuration file /etc/syslog.conf contains all the necessary paths/locations as to where the logs are stored.

Usually the directory /var/log/ is used for the system logs but other applications use the applications specified directories to store their log files...
Many distributions provide tools to manage and analyze the system logs.

Logrotate is a well known log rotation tool which usually is configured in the /etc/logrotate.conf file.
It may also have additional package-defined configurations in the /etc/logrotate.d/ directory..
In order to understand what's happening on the system a brief analysis of /etc/syslog.conf is mandatory for checking the main logs positions.

Here are some basic log files, their locations & a brief description which can be found in Linux distros [mostly in cPanel ]:

General:

Quote:
Quote:
cPanel/WHM Initial Installation Errors:
Location : /var/log/cpanel*install*
Description : These log files contain cPanel installation logs & should be referenced first for any issues resulting from new cPanel installations..
Quote:
Cpanel/WHM Service Status Logs:
Location : /var/log/chkservd.log
Description :The service monitoring demon (chkservd) logs all service checks here. Failed service are represented with a [-] and active services are represented by [+].
Quote:
Cpanel/WHM Accounting Logs:
Location : /var/cpanel/accounting.log
Description : Contains a list of accounting functions performed through WHM, including account removal and creation..

cPanel/WHM
Specific Requests and Errors:
Quote:
Quote:
cPanel error logs:
Location : /usr/local/cpanel/logs/error_log
Description : cPanel logs any error it incurs here. This should be checked when you encounter errors or strange behavior in cPanel/WHM...
Quote:
cPanel License Error Logs:
Location : /usr/local/cpanel/logs/license_log
Description : All license update attempts are logged here. If you run into any errors related to license when logging in, check here.
Quote:
Stats Daemon Logs:
Location : /usr/local/cpanel/logs/stats_log
Description : The stats daemon (cpanellogd) logs the output from all stats generators (Awstats, Webalizer, Analog) here.
Quote:
Client Information, Requested URL Logs:
Location : /usr/local/cpanel/logs/access_log
Description : General information related to access cPanel requests is logged here.
Quote:
cPanel/WHM Update Logs:
Location : /var/cpanel/updatelogs/update-[TIMESTAMP].log
Description : Contains all output from each cPanel update [upcp]. It's named with the timestamp at which the upcp process was initiated..
Quote:
Bandwidth Logs:
Location : /var/cpanel/bandwidth
Description : Files contain a list of the bandwidth history for each account. Each named after their respective user.
Quote:
Tailwatchd [New]:
Location : /usr/local/cpanel/logs/tailwatchd_log
Description : Logs for daemon configuired under tailwatchd ie. cPBandwd, Eximstats, Antirelayd.

Apache Logs:

Quote:
Quote:
General Error and Auditing Logs:
Location : /usr/local/apache/logs/error_log
Description : All exceptions caught by httpd along with standard error output from CGI applications are logged here..
The first place you should look when httpd crashes or you incur errors when accessing website.
Quote:
Apache SuExec Logs:
Location : /usr/local/apache/logs/suexec_log
Description : Auditing information reported by suexec each time a CGI application is executed. Useful for debugging internal server errors, with no relevant information being reported to the Apache error_log, check here for potential suexec policy violations...
Quote:
Domain Access Logs:
Location : /usr/local/apache/domlogs/domain.com
Description : General access log file for each domain configured with cPanel.
Quote:
Apache Access Logs:
Location : /usr/local/apache/logs/access_log
Description : Complete web server access log records all requests processed by the server.
Exim :
Quote:
Quote:
Message Reception and Delivery:
Location : /var/log/exim_mainlog or /var/log/exim/mainlog
Description : Receives an entry every time a message is received or delivered.
Quote:
Exim ACLs/Policies based RejectLog :
Location : /var/log/exim_rejectlog
Description : An entry is written to this log every time a message is rejected based on either ACLs or other policies eg: aliases configured to :fail
Quote:
Unexpected or Fatal Errors:
Location : /var/log/exim_paniclog
Description : Logs any entries exim doesn’t know how to handle. It's generally a really bad thing when log entries are being written here, and they should be properly investigated..
Quote:
IMAP/POP/SpamAssassin General Logging and Errors:
Location : /var/log/maillog & /var/log/messages
Description : The IMAP, POP, and SpamAssassin services all log here. This includes all general logging information (login attempts, transactions, spam scoring), along with fatal errors.

FTP:

Quote:
Quote:
FTP Logins and General Errors:
Location : /var/log/messages
Description : General information and login attempts are logged here..
Quote:
FTP Transactions logging:
Location : /var/log/xferlog or /var/log/messages
Description : Is a symbolic link in most cases to /usr/local/apache/domlogs/ftpxferlog, which contains a history of the transactions made by FTP users...

MySQL:

Quote:
Quote:
MySQL General Information and Errors :
Location : /var/lib/mysql/$(hostname).err
Description : This path could vary, but is generally located in /var/lib/mysql. Could also be located at /var/log/mysqld.log

Security:

Quote:
Quote:
Authentication attempts:
Location : /var/log/secure
Description : Logs all daemons which requires PAM Authentication.
Quote:
Tracking all Bad Logins and Logouts:
Location : /var/log/btmp
Description : Log of all attempted bad logins to the system. Accessed via the lastb command..
Quote:
Tracking all Logins and Logouts:
Location : /var/log/wtmp
Description : The wtmp file records all logins and logouts.
Quote:
Last Logins:
Location : /var/log/lastlog
Description : Database times of previous user logins. The lastlog file is a database which contains info on the last login of each user.
Quote:
WebDav or WebDisk Log :
Location : /usr/local/cpanel/logs/cpdavd_error_log
Description : The cpdavd daemon is "WebDav" (better known as "WebDisk") which was introduced in cPanel 11 to allow users to mount their home directory on their personal computer, always having access to the files and content...
Quote:
Cphulkd Logs:
Location : /usr/local/cpanel/logs/cphulkd_errors.log
Description : cPHulk Brute Force Protection prevents malicious forces from trying to access your server's services by guessing the login password for that service....
It blacklists IPs that it thinks are trying to run a brute force attack.
Quote:
Failure Logging:
Location : /var/log/faillog
Description : Faillog formats the contents of the failure log from /var/log/faillog database. It also can be used for maintains failure counters and limits. Run faillog without arguments display only list of user faillog records who have ever had a login failure.
Quote:
Startup/Boot, Kernel & Hardware error messages :
Location : /var/log/dmesg
Description : dmesg is a "window" into the kernels ring-buffer. It's a message buffer of the kernel. The content of this file is referred to by the dmesg command. It shows bootlog and the hardware errors..

Tomcat:

Quote:
Quote:
General Startup, Shutdown & Error Logs:
Location : /usr/local/jakarta/tomcat/logs/catalina.err and /usr/local/jakarta/tomcat/logs/catalina.out
Description : Logs for Tomcat and all tomcat based applications...
Happy Logging
__________________
Viraj Nevase
9822559953
Reply With Quote
  #2 (permalink)  
Old 09-09-2008, 01:59 AM
Administrator
 
Join Date: Aug 2006
Location: Nasik / Pune / Mumbai :)
Posts: 28
Send a message via MSN to Viraj Send a message via Yahoo to Viraj
Smile

/var/log/secure also logs actions performed in cPanel that require privilege escalation.

11.23.6 added Log Rotation for cPanel specific logs. Newer versions of CentOS/RHEL 5 can use rsyslog instead of syslog.

A number of logs are rotated when cpanellogd executes.
__________________
Viraj Nevase
9822559953
Reply With Quote
  #3 (permalink)  
Old 09-09-2008, 09:26 AM
Junior Member
 
Join Date: Sep 2008
Posts: 5
Default

Hey Viraj nice post and very helpful, keep it up.

Keep it updated with cpanel's help
Reply With Quote
  #4 (permalink)  
Old 01-13-2009, 07:01 AM
Richie D's Avatar
Moderator
 
Join Date: Jan 2009
Posts: 27
Default

WoW, what a masterpeice of information shared with all of us. Viraj, you simply Rock when its related to the Servers.You are a knowledge powerhouse.
Reply With Quote
  #5 (permalink)  
Old 01-22-2009, 06:48 AM
Administrator
 
Join Date: Aug 2006
Location: Nasik / Pune / Mumbai :)
Posts: 28
Send a message via MSN to Viraj Send a message via Yahoo to Viraj
Default

Quote:
Originally Posted by Richie D View Post
WoW, what a masterpeice of information shared with all of us. Viraj, you simply Rock when its related to the Servers.You are a knowledge powerhouse.
Thank you for your kind words, Richie
__________________
Viraj Nevase
9822559953
Reply With Quote
  #6 (permalink)  
Old 02-14-2009, 01:53 PM
Junior Member
 
Join Date: Feb 2009
Posts: 1
Default

Hi i am new here otherwise a regular to the internet
vast information which is found no where is available here.helpful piece of writing, first-class
one question: do you accept ads or banners for posting over here in exchange of backlinks or your ads??
i have a game site with over 500 uniq visitors per day.

Sachin Marathe

Last edited by sachin; 02-14-2009 at 01:57 PM.
Reply With Quote
  #7 (permalink)  
Old 03-13-2009, 03:09 AM
Administrator
 
Join Date: Aug 2006
Location: Nasik / Pune / Mumbai :)
Posts: 28
Send a message via MSN to Viraj Send a message via Yahoo to Viraj
Thumbs up

Thank you Sachin Welcome to the forums.. Have a nice time here..

Regarding the backlinks or ads, kindly contact our Sales Dept over live chat support available on our main page.. I'm sure they're going help you with this..
__________________
Viraj Nevase
9822559953
Reply With Quote
Reply

Bookmarks

Tags
/var/log, access, apache, catalina, cpanel, error, exim, failure, fatal, kernel, license, linux, logging, logrotate, logs, mail, mysql, php, security, stats, suexec, tomcat, unexpected, update, windows

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.host.co.in/forums/f37/know-cpanel-logs-detail-804/
Posted By For Type Date
Howto Install rsyslog - Ultimate 3rd Party Log Software - Linux Security Forum This thread Refback 10-07-2008 03:06 PM
Error Log Not Found - ListMessenger Forum This thread Refback 10-05-2008 06:38 PM
Other than web designing ? - Web Design Forums - Killersites.com This thread Refback 09-20-2008 04:14 PM
LifelessWiki:Logs - LifelessWiki This thread Refback 09-20-2008 01:47 AM
LifelessWiki:Linux - LifelessWiki This thread Refback 09-20-2008 01:46 AM
Nabble - cPanel Logs :: Understanding them, their locations & a brief description forum This thread Refback 09-20-2008 01:38 AM
LifelessWiki:Cleanup - LifelessWiki This thread Refback 09-20-2008 01:33 AM
Category:Cpanel Errors - CPanelDirect This thread Refback 09-20-2008 01:07 AM
cPanel and WHM Log File Locations - Your HostICan Community This thread Pingback 09-19-2008 02:20 AM
Know cPanel logs in detail ! | cPanelConfig - cPanel server configuration guide This thread Refback 09-11-2008 03:20 PM
MailWatch error Premature end of script headers - ConfigServer Scripts Forum This thread Refback 09-11-2008 11:53 AM
cPanel errors, what to check ? - Digit Forum This thread Refback 09-11-2008 12:25 AM
cPanelConfig - cPanel configuration guide This thread Refback 09-10-2008 08:18 PM
Web Design Forums - View Member Profile: xzone This thread Refback 09-10-2008 05:05 PM
Small HELLO from me :) - Web Design Forums - Killersites.com This thread Refback 09-10-2008 04:05 PM


All times are GMT. The time now is 05:00 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0