<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Log Analysis and PHP</title>
	<atom:link href="http://matthewturland.com/2007/09/03/log-analysis-and-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthewturland.com/2007/09/03/log-analysis-and-php/</link>
	<description></description>
	<lastBuildDate>Sat, 24 Jul 2010 00:49:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Cups</title>
		<link>http://matthewturland.com/2007/09/03/log-analysis-and-php/comment-page-1/#comment-135</link>
		<dc:creator>Cups</dc:creator>
		<pubDate>Wed, 05 Sep 2007 08:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://ishouldbecoding.com/2007/09/03/log-analysis-and-php/#comment-135</guid>
		<description>Sounds very interesting - heres some muddled thoughts.

Experience tells me there is lot of redundant work done in the name of stats, yet when I really need them, I either end up back in the log files in Vi, or just can&#039;t find what I need succinctly, wading through screeen after screen of graphs.

From a developer POV I really only look at logs when an exception is identified, lots of hits from a particular IP, massive ramp up on requests to a page that normally has few hits.  I want to filter out all the images hits etc.

I want it to contact me in the manner I require when an exception I have programmed into it happens.
For my clients I will want different things, I have set up I don&#039;t know how many stats procedures using analog, webtrends etc, the fact is that busy people just aren&#039;t that interested in stats per se, they want the headlines sent to them when there is something worth telling them.  THEN they want to drill down/through to glean some supposed &quot;fact&quot;.

I guess this means the api might start to look like:

setResetFrequency(daterange);
setAlertType(&quot;text&quot;, 007712345678);
getTopRequests(daterange, count, [directory]);
setIpCountTrigger(daterange, 100)-&gt;setAlertType(&quot;email&quot;,&quot;me@this.com&quot;);

Is that the kind of thing you want to write unit tests for?

A good example is local elections, it only happens every 4 years.  nobody is interested in them at all, yet for a week prior, during and a week after, everyone wants to know who was looking at a particular results and why.

So, I&#039;d like to add to my CMS a couple of lines like;

$counts = new stats( daterange, &quot;/logfile/[pattern]&quot;);

echo &#039;Between &#039; . daterange[0] . &#039; and &#039; . daterange[1] . &#039; this page has been requested &#039; . $counts-&gt;page($_SERVER[&#039;PHP_SELF&#039;]) . &#039;  times&#039; ;

I rather like the idea of stats appearing on webpages as meta data, I like the immediacy and relevance, it also provides a parallel means of navigation, which I am into.

SQL, do you mean as in SQLite? Is that instead of a cache?

How about stipulating PHP 5 +, and using APC instead of/as well as a database? Or then again using SQLite&#039;s in mem cache.</description>
		<content:encoded><![CDATA[<p>Sounds very interesting &#8211; heres some muddled thoughts.</p>
<p>Experience tells me there is lot of redundant work done in the name of stats, yet when I really need them, I either end up back in the log files in Vi, or just can&#8217;t find what I need succinctly, wading through screeen after screen of graphs.</p>
<p>From a developer POV I really only look at logs when an exception is identified, lots of hits from a particular IP, massive ramp up on requests to a page that normally has few hits.  I want to filter out all the images hits etc.</p>
<p>I want it to contact me in the manner I require when an exception I have programmed into it happens.<br />
For my clients I will want different things, I have set up I don&#8217;t know how many stats procedures using analog, webtrends etc, the fact is that busy people just aren&#8217;t that interested in stats per se, they want the headlines sent to them when there is something worth telling them.  THEN they want to drill down/through to glean some supposed &#8220;fact&#8221;.</p>
<p>I guess this means the api might start to look like:</p>
<p>setResetFrequency(daterange);<br />
setAlertType(&#8220;text&#8221;, 007712345678);<br />
getTopRequests(daterange, count, [directory]);<br />
setIpCountTrigger(daterange, 100)-&gt;setAlertType(&#8220;email&#8221;,&#8221;me@this.com&#8221;);</p>
<p>Is that the kind of thing you want to write unit tests for?</p>
<p>A good example is local elections, it only happens every 4 years.  nobody is interested in them at all, yet for a week prior, during and a week after, everyone wants to know who was looking at a particular results and why.</p>
<p>So, I&#8217;d like to add to my CMS a couple of lines like;</p>
<p>$counts = new stats( daterange, &#8220;/logfile/[pattern]&#8220;);</p>
<p>echo &#8216;Between &#8216; . daterange[0] . &#8216; and &#8216; . daterange[1] . &#8216; this page has been requested &#8216; . $counts-&gt;page($_SERVER['PHP_SELF']) . &#8216;  times&#8217; ;</p>
<p>I rather like the idea of stats appearing on webpages as meta data, I like the immediacy and relevance, it also provides a parallel means of navigation, which I am into.</p>
<p>SQL, do you mean as in SQLite? Is that instead of a cache?</p>
<p>How about stipulating PHP 5 +, and using APC instead of/as well as a database? Or then again using SQLite&#8217;s in mem cache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: me</title>
		<link>http://matthewturland.com/2007/09/03/log-analysis-and-php/comment-page-1/#comment-134</link>
		<dc:creator>me</dc:creator>
		<pubDate>Tue, 04 Sep 2007 12:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://ishouldbecoding.com/2007/09/03/log-analysis-and-php/#comment-134</guid>
		<description>what about www.phpmyvisites.net. it&#039;s a very nice tool licensed under the gpl.</description>
		<content:encoded><![CDATA[<p>what about <a href="http://www.phpmyvisites.net" rel="nofollow">http://www.phpmyvisites.net</a>. it&#8217;s a very nice tool licensed under the gpl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: developercast.com &#187; Matthew Turland&#8217;s Blog: Log Analysis and PHP</title>
		<link>http://matthewturland.com/2007/09/03/log-analysis-and-php/comment-page-1/#comment-133</link>
		<dc:creator>developercast.com &#187; Matthew Turland&#8217;s Blog: Log Analysis and PHP</dc:creator>
		<pubDate>Tue, 04 Sep 2007 02:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://ishouldbecoding.com/2007/09/03/log-analysis-and-php/#comment-133</guid>
		<description>[...] a new post, Matthew Turland looks at one thing that he feels is missing from a lot of the PHP functionality [...]</description>
		<content:encoded><![CDATA[<p>[...] a new post, Matthew Turland looks at one thing that he feels is missing from a lot of the PHP functionality [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
