<?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"
	>
<channel>
	<title>Comments on: Loghetti Beta - An Apache Log Filter</title>
	<atom:link href="http://www.protocolostomy.com/2008/03/13/loghetti-beta-an-apache-log-filter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.protocolostomy.com/2008/03/13/loghetti-beta-an-apache-log-filter/</link>
	<description>Made with only the finest 1's and 0's</description>
	<pubDate>Fri, 21 Nov 2008 14:44:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Kent Johnson</title>
		<link>http://www.protocolostomy.com/2008/03/13/loghetti-beta-an-apache-log-filter/#comment-192</link>
		<dc:creator>Kent Johnson</dc:creator>
		<pubDate>Fri, 14 Mar 2008 00:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/2008/03/13/loghetti-beta-an-apache-log-filter/#comment-192</guid>
		<description>Thanks, this looks like it will be handy. You could make the expensive properties lazy fairly easily, e.g. with this recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/363602

Perhaps you want to group the 'laziness' so asking for e.g. year will also populate month, day, etc.

Other small optimizations in ApacheLogLine.__init__():
- Only call self.request_line.split(' ') once, e.g.
self.http_method, self.url, self.http_vers = self.request_line.split(' ')
- Move self.rex to a class attribute, there is no need to compile and store this for every line!

The output is IMO more readable if ApacheLogLine.__str__() uses ' '.join() rather than ','.join().</description>
		<content:encoded><![CDATA[<p>Thanks, this looks like it will be handy. You could make the expensive properties lazy fairly easily, e.g. with this recipe:<br />
<a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/363602" rel="nofollow">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/363602</a></p>
<p>Perhaps you want to group the &#8216;laziness&#8217; so asking for e.g. year will also populate month, day, etc.</p>
<p>Other small optimizations in ApacheLogLine.__init__():<br />
- Only call self.request_line.split(&#8217; &#8216;) once, e.g.<br />
self.http_method, self.url, self.http_vers = self.request_line.split(&#8217; &#8216;)<br />
- Move self.rex to a class attribute, there is no need to compile and store this for every line!</p>
<p>The output is IMO more readable if ApacheLogLine.__str__() uses &#8216; &#8216;.join() rather than &#8216;,&#8217;.join().</p>
]]></content:encoded>
	</item>
</channel>
</rss>
