<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<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/"
	>

<channel>
	<title>PHP-Scripts Blog &#187; Security</title>
	<link>http://www.php-scripts.com</link>
	<description>Writing about PHP scripting since 12/99. Learn something new every day.</description>
	<pubDate>Thu, 09 Oct 2008 14:17:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>Tail -f apache access_log</title>
		<link>http://www.php-scripts.com/20051023/43/</link>
		<comments>http://www.php-scripts.com/20051023/43/#comments</comments>
		<pubDate>Sun, 23 Oct 2005 13:19:17 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[SSH]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=43</guid>
		<description><![CDATA[
Here is how to use SSH/Telnet do a search and locate your access_log file. The linux locate command will help:

locate access_log

You might see lots of logs separated by domain names. A common location for these logs are /var/log/apache, so cd your way there:

cd /var/log/apache
/var/log/apache$ tail -f access_log

Now a stream using tail of the file will [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.php-scripts.com/images/2005/tail-f_ssh.jpg" border="0" ALT="SSH screenshot showing tail -f stream in action"/></p>
<p>Here is how to use SSH/Telnet do a search and locate your access_log file. The linux locate command will help:</p>
<div class="codesnip-container" >
<div class="codesnip">locate access_log</div>
</div>
<p>You might see lots of logs separated by domain names. A common location for these logs are /var/log/apache, so cd your way there:</p>
<div class="codesnip-container" >
<div class="codesnip">cd /var/log/apache<br />
/var/log/apache$ tail -f access_log</div>
</div>
<p>Now a stream using tail of the file will occur in real time and you can watch and see who is accessing what in near real time.</p>
<p>Reference: <a href="http://www.php-scripts.com/php_diary/012103.php3">Parsing Apache acces log files using PHP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20051023/43/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

