<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cPanel Admins &#187; Logs</title>
	<atom:link href="http://www.cpaneladmins.com/category/logs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cpaneladmins.com</link>
	<description>Random Notes for cPanel Admins</description>
	<lastBuildDate>Wed, 08 Sep 2010 10:15:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Manually Rotate Logs with logrotate</title>
		<link>http://www.cpaneladmins.com/2010/09/08/manually-rotate-logs-with-logrotate/</link>
		<comments>http://www.cpaneladmins.com/2010/09/08/manually-rotate-logs-with-logrotate/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 09:21:17 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Logs]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[log rotation]]></category>
		<category><![CDATA[logrotate]]></category>
		<category><![CDATA[manual]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=406</guid>
		<description><![CDATA[The individual configuration files for logrotate are located in /etc/logrotate.d: # cd /etc/logrotate.d/ Then, to manually rotate the logs for exim, simply run the following. # logrotate exim Note: you won&#8217;t see any output, but you will notice that the exim logs in /var/log are now rotated out.]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">The individual configuration files for logrotate are located in /etc/logrotate.d:<br />
<a href="http://www.cpaneladmins.com/wp-content/uploads/2010/09/logrotate.png"><img class="size-medium wp-image-407 aligncenter" title="logrotate" src="http://www.cpaneladmins.com/wp-content/uploads/2010/09/logrotate-300x168.png" alt="" width="300" height="168" /></a></p>
<pre class="brush:bash"># cd /etc/logrotate.d/</pre>
<p style="text-align: center;"><a href="http://www.cpaneladmins.com/wp-content/uploads/2010/09/logrotate2.png"><img class="size-medium wp-image-408 aligncenter" title="logrotate2" src="http://www.cpaneladmins.com/wp-content/uploads/2010/09/logrotate2-222x300.png" alt="" width="222" height="300" /></a></p>
<p>Then, to manually rotate the logs for exim, simply run the following.</p>
<pre class="brush:bash"># logrotate exim</pre>
<p><strong>Note</strong>: you won&#8217;t see any output, but you will notice that the exim logs in /var/log are now rotated out.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2010/09/08/manually-rotate-logs-with-logrotate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel Log Locations</title>
		<link>http://www.cpaneladmins.com/2010/07/29/cpanel-log-locations/</link>
		<comments>http://www.cpaneladmins.com/2010/07/29/cpanel-log-locations/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:42:23 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Logs]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[apache logs]]></category>
		<category><![CDATA[cpanel logs]]></category>
		<category><![CDATA[http logs]]></category>
		<category><![CDATA[httpd logs]]></category>
		<category><![CDATA[modsecurity]]></category>
		<category><![CDATA[named logs]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=370</guid>
		<description><![CDATA[cPanel Log File Locations This is a shortlist of various log files for various applications on your Cpanel VPS. cPanel Installation Logs: /var/log/cpanel-install-thread0.log Apache: /usr/local/apache/logs/access_log /usr/local/apache/logs/error_log Apache domlogs: /usr/local/apache/domlogs/example.com Apache SUEXEC Logs: /usr/local/apache/logs/suexec_log MySQL /var/lib/mysql/hostname.err BIND (named) Log: /var/log/messages Exim /var/log/exim_mainlog /var/log/exim_paniclog /var/log/exim_rejectlog Courier or Dovecot IMAP /var/log/maillog Tomcat Logs: /usr/local/jakarta/tomcat/logs/catalina.err /usr/local/jakarta/tomcat/logs/catalina.out cPanel Access Log: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>cPanel Log File Locations</strong></p>
<p>This is a shortlist of various log files for various applications on your Cpanel VPS.</p>
<p><strong>cPanel Installation Logs:</strong><br />
/var/log/cpanel-install-thread0.log</p>
<p><strong>Apache:</strong><br />
/usr/local/apache/logs/access_log<br />
/usr/local/apache/logs/error_log</p>
<p><strong>Apache domlogs:</strong><br />
/usr/local/apache/domlogs/example.com</p>
<p><strong>Apache SUEXEC Logs:</strong><br />
/usr/local/apache/logs/suexec_log</p>
<p><strong>MySQL</strong><br />
/var/lib/mysql/hostname.err</p>
<p><strong>BIND (named) Log:</strong><br />
/var/log/messages</p>
<p><strong>Exim</strong><br />
/var/log/exim_mainlog<br />
/var/log/exim_paniclog<br />
/var/log/exim_rejectlog</p>
<p><strong>Courier or Dovecot IMAP</strong><br />
/var/log/maillog</p>
<p><strong>Tomcat Logs:</strong><br />
/usr/local/jakarta/tomcat/logs/catalina.err<br />
/usr/local/jakarta/tomcat/logs/catalina.out</p>
<p><strong>cPanel Access Log:</strong><br />
/usr/local/cpanel/logs/access_log</p>
<p><strong>cPanel Error Log:</strong><br />
/usr/local/cpanel/logs/error_log</p>
<p><strong>cPanel License Log:</strong><br />
/usr/local/cpanel/logs/license_log</p>
<p><strong>Stats Execution Logs:</strong><br />
/usr/local/cpanel/logs/stats_log</p>
<p><strong>ChkServd (cPanel Monitoring Daemon) Logs:</strong><br />
/var/log/chkservd.log</p>
<p><strong>cPHulkd</strong><br />
/usr/local/cpanel/logs/cphulkd.log</p>
<p><strong>cPanel Backup Logs:</strong><br />
/usr/local/cpanel/logs/cpbackup/*.log</p>
<p><strong>Pure-FTP</strong><br />
/var/log/messages<br />
/var/log/xferlog (symlinked to /usr/local/apache/domlogs/ftpxferlog)</p>
<p><strong>Cron Logs:</strong><br />
/var/log/cron</p>
<p><strong>SSH Logs</strong>:<br />
/var/log/secure</p>
<p><strong>ModSecurity:</strong><br />
/usr/local/apache/logs/modsec_audit.log<br />
/usr/local/apache/logs/modsec_debug_log</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2010/07/29/cpanel-log-locations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install Logwatch</title>
		<link>http://www.cpaneladmins.com/2009/10/31/how-to-install-logwatch/</link>
		<comments>http://www.cpaneladmins.com/2009/10/31/how-to-install-logwatch/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 22:05:56 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Logs]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[logwatch]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=85</guid>
		<description><![CDATA[Logwatch is very simple to install on CentOS boxen: yum -y install logwatch This will install logwatch and configure the daily logwatch cron in /etc/cron.daily. If you want to customize your logwatch configuration, you can edit /etc/logwatch/conf/logwatch.conf and modify settings like the email address the report is sent to, the verbosity of the report, what [...]]]></description>
			<content:encoded><![CDATA[<p>Logwatch is very simple to install on CentOS boxen:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
yum -y install logwatch
</pre>
<p>This will install logwatch and configure the daily logwatch cron in /etc/cron.daily.  If you want to customize your logwatch configuration, you can edit /etc/logwatch/conf/logwatch.conf and modify settings like the email address the report is sent to, the verbosity of the report, what day you want logwatch to process, etc.  A sample configuration is located at /usr/share/logwatch/default.conf/logwatch.conf</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/10/31/how-to-install-logwatch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Logging of Slow MySQL Queries</title>
		<link>http://www.cpaneladmins.com/2009/10/10/enable-logging-of-slow-mysql-queries/</link>
		<comments>http://www.cpaneladmins.com/2009/10/10/enable-logging-of-slow-mysql-queries/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 14:00:31 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Logs]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=78</guid>
		<description><![CDATA[MySQL has a feature that allows you to log slow running queries to a file. To enable you just need to add some lines to your my.cnf file, and restart. Insert the following into /etc/my.cnf: log-slow-queries = /var/log/mysql/mysql-slow.log long_query_time = 5 Save my.cnf and do the following when you return to a shell: #touch /var/log/mysql/mysql-slow.log [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL has a feature that allows you to log slow running queries to a file. To enable you just need to add some lines to your my.cnf file, and restart. </p>
<p>Insert the following into /etc/my.cnf:</p>
<p><code>log-slow-queries = /var/log/mysql/mysql-slow.log<br />
long_query_time = 5</code></p>
<p>Save my.cnf and do the following when you return to a shell:</p>
<p><code>#touch /var/log/mysql/mysql-slow.log<br />
#chown mysql:mysql /var/log/mysql/mysql-slow.log<br />
#service mysql restart</code></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/10/10/enable-logging-of-slow-mysql-queries/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Webmail logins failing</title>
		<link>http://www.cpaneladmins.com/2009/10/01/webmail-logins-failing/</link>
		<comments>http://www.cpaneladmins.com/2009/10/01/webmail-logins-failing/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 17:30:56 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Logs]]></category>
		<category><![CDATA[Webmail]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=73</guid>
		<description><![CDATA[First thing &#8212; check /usr/local/cpanel/logs/login_log If you see a line like: 208.74.121.102 - name@domain.com [10/01/2009:17:21:12 -0000] "POST /login/ HTTP/1.1" FAILED LOGIN webmaild: user password hash is missing from system (user probably does not exist) Check /home/USER/etc/DOMAIN/shadow to make sure that the webmail user is listed there. If not, copy one of the lines, change the [...]]]></description>
			<content:encoded><![CDATA[<p>First thing &#8212; check /usr/local/cpanel/logs/login_log</p>
<p>If you see a line like:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
208.74.121.102 - name@domain.com [10/01/2009:17:21:12 -0000] "POST
/login/ HTTP/1.1" FAILED LOGIN webmaild: user password hash is missing
from system (user probably does not exist)
</pre>
<p>Check /home/USER/etc/DOMAIN/shadow to make sure that the webmail user is listed there.  If not, copy one of the lines, change the username, and reset the password via cPanel.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/10/01/webmail-logins-failing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
