<?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>RedHatVN Network &#124; Ho Tro Linux &#124; Support Linux &#124; Linux VN &#187; domlogs</title>
	<atom:link href="http://redhatvn.net/tag/domlogs/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Fri, 03 Sep 2010 08:03:00 +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>wtop – Apache Web Server Log Analyser</title>
		<link>http://redhatvn.net/wtop-%e2%80%93-apache-web-server-log-analyser</link>
		<comments>http://redhatvn.net/wtop-%e2%80%93-apache-web-server-log-analyser#comments</comments>
		<pubDate>Fri, 25 Dec 2009 07:56:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[domlogs]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1035</guid>
		<description><![CDATA[How to Install and Configure wtop – Apache Web Server Log Analyser wtop is really cool application for web server log analysis and to see server stats at a glance. It also has powerful log grepping capability. It is just like ‘top’ for your webserver It can find out number of searches or signups per [...]]]></description>
			<content:encoded><![CDATA[<h1>How to Install and Configure wtop – Apache Web Server Log Analyser</h1>
<p>wtop is really cool application for web server log analysis and to see server stats at a glance. It also has powerful log grepping capability. It is just like ‘top’ for your webserver</p>
<p>It can find out number of searches or signups per seconds. It can also create histogram of response time. There is also another tool called logrep a powerful command-line program for ad-hoc analysis and filtering for log files. You can dig up lots of information using wtop tools.<br />
<span id="more-1035"></span><br />
You need Python version 2.5 to run wtop.</p>
<h2>Download wtop</h2>
<p>Type the following command:</p>
<blockquote><p><code>$ cd /tmp<br />
$ wget  http://wtop.googlecode.com/files/wtop-0.5.6.tar.gz<br />
$ tar -zxvf  wtop-0.5.6.tar.gz<br />
$ cd wtop-0.5.6<br />
# python setup.py install</code></p></blockquote>
<p><strong>Configuring wtop</strong><br />
Once installed you can start using the tool immediately. You need to edit /etc/wtop.cfg file to setup parameters, Apache log files and other directives</p>
<blockquote><p><code># vi /etc/wtop.cfg</code></p></blockquote>
<p>Now simply type wtop at a shell prompt:</p>
<blockquote><p><code>$ wtop$ </code></p></blockquote>
<p>See all  human traffic, enter:<br />
<code>$ logrep -m top -h access.log</code><br />
See  response times for all MSNBot homepage hits:<br />
<code>$ logrep -m grep -g MSNBot  -i home -o status,msec,url access.log</code><br />
Display the current log for  traffic to pages about wordpress or themes sent from google.com<br />
<code>$  logrep -m tail --f 'url~wordpress|themes,ref~google.com' access.log</code></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/wtop-%e2%80%93-apache-web-server-log-analyser/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Log Files on a cPanel server</title>
		<link>http://redhatvn.net/log-files-on-a-cpanel-server</link>
		<comments>http://redhatvn.net/log-files-on-a-cpanel-server#comments</comments>
		<pubDate>Fri, 25 Dec 2009 05:57:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[domlogs]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=969</guid>
		<description><![CDATA[Following are the logs files on a cPanel server for different services: Apache Logs: /usr/local/apache/logs/access_log /usr/local/apache/logs/error_log Exim Logs: /var/log/exim_mainlog /var/log/exim_paniclog /var/log/exim_rejectlog Ftp Logs: /var/log/messages Mysql Logs: /var/lib/mysql/server.hostname.err ChkServd Logs: /var/log/chkservd.log Named (Bind) Logs: /var/log/messages Last logins to server: /var/log/wtmp (but to view the details, execute the command “last”) Domlogs of an Account: /usr/local/apache/domlogs/domainname.tld Mod Security [...]]]></description>
			<content:encoded><![CDATA[<p>Following are the <strong>logs files on a cPanel server for different services</strong>:<br />
<span id="more-969"></span><br />
<strong>Apache Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/usr/local/apache/logs/access_log<br />
/usr/local/apache/logs/error_log</strong></span></p></blockquote>
<p><strong>Exim Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/var/log/exim_mainlog<br />
/var/log/exim_paniclog<br />
/var/log/exim_rejectlog</strong></span></p></blockquote>
<p><strong>Ftp Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/var/log/messages</strong></span></p></blockquote>
<p><strong>Mysql Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/var/lib/mysql/server.hostname.err</strong></span></p></blockquote>
<p><strong>ChkServd Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/var/log/chkservd.log</strong></span></p></blockquote>
<p><strong>Named (Bind) Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/var/log/messages</strong></span></p></blockquote>
<p><strong>Last logins to server:</strong></p>
<blockquote><p><strong><span style="color: #ff6600;">/var/log/wtmp</span> (but to view the details, execute the command “last”)</strong></p></blockquote>
<p><strong> </strong></p>
<p><strong>Domlogs of an Account:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/usr/local/apache/domlogs/domainname.tld</strong></span></p></blockquote>
<p><strong>Mod Security Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/usr/local/apache/logs/modsec_audit.log<br />
/usr/local/apache/logs/modsec_debug_log</strong></span></p></blockquote>
<p><strong>Apache SUEXEC Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/usr/local/apache/logs/suexec_log</strong></span></p></blockquote>
<p><strong>cPanel Access and Error Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/usr/local/cpanel/logs/access_log<br />
/usr/local/cpanel/logs/error_log</strong></span></p></blockquote>
<p><strong>Stats Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/usr/local/cpanel/logs/stats_log</strong></span></p></blockquote>
<p><strong>cPanel License Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/usr/local/cpanel/logs/license_log</strong></span></p></blockquote>
<p><strong>cPanel Backup Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/usr/local/cpanel/logs/cpbackup/*.log</strong></span></p></blockquote>
<p><strong>Tomcat Logs:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>/usr/local/jakarta/tomcat/logs/catalina.err<br />
/usr/local/jakarta/tomcat/logs/catalina.out</strong></span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/log-files-on-a-cpanel-server/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Script for cropping down the domlogs</title>
		<link>http://redhatvn.net/script-for-cropping-down-the-domlogs</link>
		<comments>http://redhatvn.net/script-for-cropping-down-the-domlogs#comments</comments>
		<pubDate>Tue, 18 Aug 2009 01:41:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[domlogs]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=185</guid>
		<description><![CDATA[Script for cropping down the domlogs #!/bin/bash for domain in /usr/local/apache/domlogs/*; do # Find the domain having more than 100 Mb log file size if [ 3000 -lt `du $domain &#124; awk {'print $1'} 2&#62; /dev/null` ] then { echo $domain; echo “splitting the file into sizes of 50 Mb each…”; /usr/local/cpanel/bin/cpuwatch 7.0 split -b [...]]]></description>
			<content:encoded><![CDATA[<div>
<div>
<p>Script for cropping down the domlogs</p>
<p><span id="more-185"></span>#!/bin/bash</p>
<p>for domain in /usr/local/apache/domlogs/*;<br />
do<br />
# Find the domain having more than 100 Mb log file size</p>
<p>if [ 3000 -lt `du $domain | awk {'print $1'} 2&gt; /dev/null` ]<br />
then<br />
{<br />
echo $domain;</p>
<p>echo “splitting the file into sizes of 50 Mb each…”;</p>
<p>/usr/local/cpanel/bin/cpuwatch 7.0 split -b 2m $domain ${domain};</p>
<p>echo “Appending the last two sets of files generated”;</p>
<p>for i in `ls ${domain}a*| tail -n 2`;<br />
do<br />
tail -n 2 $i;echo $i;<br />
cat $i &gt;&gt; ${domain}.test;<br />
done</p>
<p>}<br />
cp -f ${domain}.test ${domain};<br />
rm -f ${domain}a* ${domain}.test;</p>
<p>echo “done”;<br />
fi</p>
<p>done</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/script-for-cropping-down-the-domlogs/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->