<?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>Musings of an Anonymous Geek &#187; Loghetti</title>
	<atom:link href="http://www.protocolostomy.com/category/loghetti/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.protocolostomy.com</link>
	<description>Made with only the finest 1's and 0's</description>
	<lastBuildDate>Mon, 19 Jul 2010 12:31:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Quick Loghetti Update</title>
		<link>http://www.protocolostomy.com/2010/03/15/quick-loghetti-update/</link>
		<comments>http://www.protocolostomy.com/2010/03/15/quick-loghetti-update/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 00:23:01 +0000</pubDate>
		<dc:creator>m0j0</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Loghetti]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.protocolostomy.com/?p=726</guid>
		<description><![CDATA[For the familiar and impatient: Loghetti has moved to github and has been updated. An official release hasn&#8217;t been made yet, but cloning the repository and installing argparse will result in perfectly usable code. More on the way. For the uninitiated, Loghetti is a command line log sifting/reporting tool written in Python to parse Apache [...]]]></description>
			<content:encoded><![CDATA[<p><strong>For the familiar and impatient</strong>: Loghetti has moved to github and has been updated. An official release hasn&#8217;t been made yet, but cloning the repository and installing argparse will result in perfectly usable code. More on the way.</p>
<p><strong>For the uninitiated,</strong> <strong>Loghetti is</strong> a command line log sifting/reporting tool written in Python to parse Apache Combined Format log files. It was initially released in late 2008 on Google Code. I used loghetti for my own work, which involved sifting log files with tens of millions of lines. Needless to say, it needed to be reasonably fast, and give me a decent amount of control over the data returned. It also had to be easy to use; just because it&#8217;s fast doesn&#8217;t mean I want to retype my command because of confusing options or the like.</p>
<p>So, loghetti is reasonably fast, and reasonably easy, and gives a reasonable amount of control to the end user. It&#8217;s certainly a heckuva lot easier than writing regular expressions into &#8216;grep&#8217; and doing the ol&#8217; &#8216;press &amp; pray&#8217;.</p>
<p>Loghetti suffered a bit over the last several months because one of its dependencies broke backward compatibility with earlier releases. Such is the nature of development. Last night I finally got to crack open the code for loghetti again, and was able to put a solution together in an hour or so, which surprised me.</p>
<p>I was able to completely replace <a href="http://www.doughellmann.com/">Doug</a> Hellmann&#8217;s <a href="http://www.doughellmann.com/projects/CommandLineApp/">CommandLineApp</a> with argparse very, very quickly. Of course, CommandLineApp was taking on responsibility for actually running the app itself (the main loghetti class was a subclass of CommandLineApp), and was dealing with the options, error handling, and all that jazz. It&#8217;s also wonderfully generic, and is written so that pretty much any app, regardless of the type of options it takes, could run as a CommandLineApp.</p>
<p>argparse was not a fast friend of mine. I stumbled a little over whether I should just update the namespace of my main class via argparse, or if I should pass in the Namespace object, or&#8230; something else. Eventually, I got what I needed, and not much more.</p>
<p>So loghetti now requires argparse, which is not part of the standard library, so why replace what I knew with some other (foreign) library? Because argparse is, <a href="http://www.python.org/dev/peps/pep-0389/">as I understand it,</a> slated for inclusion in Python 3, at which point optparse will be deprecated.</p>
<p>So, head on over to the <a href="http://github.com/bkjones/loghetti">GitHub repo</a>, give it a spin, and send your pull requests and patches. Let the games begin!</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.protocolostomy.com%2F2010%2F03%2F15%2Fquick-loghetti-update%2F';
  addthis_title  = 'Quick+Loghetti+Update';
  addthis_pub    = 'jonesy';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.protocolostomy.com/2010/03/15/quick-loghetti-update/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Useful stuff &#8211; 2008 &#8211; first half</title>
		<link>http://www.protocolostomy.com/2008/07/11/useful-stuff-2008-first-half/</link>
		<comments>http://www.protocolostomy.com/2008/07/11/useful-stuff-2008-first-half/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 13:46:53 +0000</pubDate>
		<dc:creator>m0j0</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Loghetti]]></category>
		<category><![CDATA[Me stuff]]></category>
		<category><![CDATA[Other Cool Blogs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.protocolostomy.com/?p=330</guid>
		<description><![CDATA[Having a Google account is sometimes useful in ways you hadn&#8217;t planned for. For example, at a few different employers I&#8217;ve been at, I&#8217;ve had to prepare for reviews by providing a list of accomplishments to my supervisor. One decent tool for generating this list is email, though it can take some time. Another useful [...]]]></description>
			<content:encoded><![CDATA[<p>Having a Google account is sometimes useful in ways you hadn&#8217;t planned for. For example, at a few different employers I&#8217;ve been at, I&#8217;ve had to prepare for reviews by providing a list of accomplishments to my supervisor. One decent tool for generating this list is email, though it can take some time. Another useful tool is the Web History feature of your Google account.</p>
<p>Though this isn&#8217;t necessarily indicative of everything I&#8217;ve accomplished in the first half of 2008 per se, it&#8217;s definitely indicative of the types of things I&#8217;ve generally been into so far this year, and it&#8217;s interesting to look back. What does your Web History say?</p>
<ul>
<li><a href="http://www.danga.com/gearman/">Gearman</a> &#8211; this is used by some rather large web sites, notably Digg. It reminds me a little of having Torque and Maui, but geared toward more general-purpose applications. In fact, it was never clear to me that PBS/Maui couldn&#8217;t actually do this, but I didn&#8217;t get far enough into Gearman to really say that authoritatively.</li>
<li><a href="http://highscalability.com/search-source-data-how-simpledb-differs-rdbms">How SimpleDB Differs from a Relational Database</a> &#8211; Links off to some very useful takes on the &#8220;cloud&#8221; databases, which are truly fascinating creatures, but have a vastly different data management philosophy from the relational model we&#8217;re all used to.</li>
<li><a href="http://www.zemanta.com/reblog/">Reblog</a> &#8211; I found this in the footer of someone&#8217;s blog post. It&#8217;s kinda neat, but to be honest, I think you can do similar stuff using the <a href="http://flock.com">Flock</a> browser.</li>
<li><a href="http://code.google.com/apis/finance/">Google Finance APIs and Tools</a> &#8211; did I ever mention that I had a Series 7 &amp; 63 license two months after my 20th birthday? I love anything that I can think for very long periods of time about, where there&#8217;s lots and lots and LOTS of data to play with, where you can make correlations and answer questions nobody even thought to ask. Of course, soon after finding this page I found the actual <a href="http://finance.google.com">Google Finance</a> page, which answers an awful lot of potential questions. The stock screener is actually what I was looking to write myself, but with the data freely available, I&#8217;m sure it won&#8217;t be long before I find something else fun to do with it. I&#8217;m not a fan of Google&#8217;s &#8220;Feeds&#8221; model, but I&#8217;ve dealt with it before, and will do it again if it means getting at this data.</li>
<li><a href="http://www.bitpusher.com/">Bitpusher</a> &#8211; it was recommended to me as an alternative to traditional dedicated server hosting. Worth a look.</li>
<li><a href="http://www.rjonna.com/ext/s3fox.php">S3 Firefox Organizer</a> &#8211; This is a firefox plugin that provides an interface that looks a lot like an FTP GUI or something, but allows you to move files to and from &#8220;buckets&#8221; in Amazon&#8217;s S3 service.</li>
<li><a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=827">Boto</a> &#8211; A python library for writing programs that interact with the various Amazon Web Services. It&#8217;s not particularly well-documented, and it has a few quirks, but it <em>is</em> useful.</li>
<li><a href="http://www.omnigroup.com/applications/omnigraffle/">OmniGraffle</a> &#8211; A Visio replacement for Apple OS X. I like it a lot better than Visio, actually. It has tons of contributed templates. You shouldn&#8217;t have any trouble making the switch. A little pricey, but I plunked down the cash, and have not been disappointed.</li>
<li><a href="http://blog.doughellmann.com/2007/04/pymotw-queue.html">The Python Queue Module according to Doug</a> &#8211; Doug Hellmann&#8217;s Python Module of the Week (PyMOTW) should be published in dead tree form some day. I happen to have some code that could make better use of queuing if it were a) written in Python, and b) used the Queue module. I was a little put off by the fact that every single tutorial I found on this module assumed you wanted to use threading, which I actually don&#8217;t, because I&#8217;m not smart enough&#8230;. though the last person I told that to said something to the effect of &#8220;the fact that you believe that means you&#8217;re smart enough&#8221;. Heh.</li>
<li><a href="http://dev.mysql.com/doc/refman/5.0/en/group-by-modifiers.html">MySQL GROUP modifiers</a> &#8211; turns out this isn&#8217;t what I needed for the problem I was trying to solve, but the &#8220;WITH ROLLUP&#8221; feature was new to me at the time I found it, and it&#8217;s kinda cool.</li>
<li>WordPress &#8220;Subscribe to Comments&#8221; plugin &#8211; <a href="http://xaprb.com/blog/">Baron</a> suggested that it would be good to have this, and I had honestly not even thought about it. But looking around, this is the only plugin of its kind that I found, and it&#8217;s only tested up to WP 2.3x, and I&#8217;m on 2.5x. This is precisely why <a href="http://www.protocolostomy.com/2008/06/25/plug-ins-isnt-there-a-better-way/">I hate plugins</a> (as an end user, anyway. <a href="http://code.google.com/p/loghetti/">Loghetti</a> supports plugins) <img src='http://www.protocolostomy.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
<li><a href="http://www.techcrunch.com/2007/06/12/your-truman-show-organized-life-blogging/">Lifeblogging</a> &#8211; I had occasion to go back and flip through some of the volumes of journals I&#8217;ve kept since age 12, wondering if it might be time to digitize those in some form. I might digitize them, but they will *not* be public I don&#8217;t think. Way too embarrassing.</li>
<li><a href="http://linux.die.net/man/1/ldapmodrdn">ldapmodrdn</a> &#8211; for a buddy who hasn&#8217;t yet found all of the openldap command line tools. You can&#8217;t use &#8216;ldapmodify&#8217; (to my knowledge) to *rename* an entry.</li>
<li><a href="http://labs.sixpixelsapart.com/projects/django-graphs">Django graphs</a> &#8211; I haven&#8217;t yet tried this, because I&#8217;m still trying to learn Django in what little spare time I have, but it looks like there&#8217;s at least some effort towards this out there in the community. I have yet to see a newspaper that doesn&#8217;t have graphs *somewhere* (finance, sports, weather&#8230;), so I&#8217;m surprised Django doesn&#8217;t have something like this built-in.</li>
<li><a href="http://brunovernay.wordpress.com/2007/04/11/urldecode-for-mysql/">URL Decode UDF for MySQL</a> &#8211; I&#8217;ve used this. It works really well.</li>
<li><a href="http://www.erlang.org/about.html">Erlang</a> &#8211; hey, I&#8217;m game for anything. If I weren&#8217;t, I&#8217;d still be writing all of my code in Perl.</li>
<li><a href="http://ebergen.net/wordpress/2008/02/25/the-difference-between-iowait-from-sar-and-util-from-iostat/">The difference between %iowait in sar and %util in iostat </a>- I use both tools, and wanted the clarification because I was writing some graphing code in Python (using <a href="http://simile.mit.edu/timeplot/">Timeplot</a>, which rocks, by the way), and stumbled upon the question. Google to the rescue!</li>
<li><a href="http://en.oreilly.com/oscon2008/public/content/home">OSCON &#8217;08</a> &#8211; I&#8217;m going. Are you going? I&#8217;m also going to the <a href="http://www.oregonbrewfest.com/">Oregon Brewers Festival</a> on the last day of OSCON, as I did in &#8217;06. Wonderful!</li>
<li><a href="http://www.datacenterknowledge.com/archives/2008/Jun/01/explosion_at_the_planet_causes_major_outage.html">Explosion at one of my hosting providers</a> &#8211; didn&#8217;t affect me, but&#8230; wow!</li>
<li><a href="http://hypertable.org/">hypertable</a> &#8211; *sigh* someday&#8230;when there&#8217;s time&#8230;</li>
<li><a href="http://www.daycreek.com/DC/html/DC_hydro.htm">Small-scale hydro power</a> &#8211; Yeah, I&#8217;m kind of a DIYer at heart. I do some woodworking, all my own plumbing, painting, flooring, I brew my own beer, I cook, I collect rain in big barrels, power sprinklers using pool runoff to give my lawn a jumpstart in spring&#8230; that kind of stuff. One day I noticed water coming out of a downspout fast enough to leap over one of my rain barrels and thought there must be some way to harness that power. Sadly, there really isn&#8217;t, so I did some research. It&#8217;s non-trivial.</li>
<li><a href="http://whyy.org/91FM/ybyg/">You bet your garden</a> &#8211; I also do my own gardening and related experiments.</li>
<li><a href="http://www.rightscale.com/m/screencasts/demo01/RightScale_Demo_v3.htm">RightScale Demo</a> &#8211; WATCH YOUR VOLUME &#8211; a screencast showing off RightScale&#8217;s features. Impressive considering the work it would take me, a lone admin, to set something like this up. The learning curve involved in effectively/efficiently managing/scaling/monitoring/troubleshooting EC2 is non-trivial.</li>
<li><a href="http://www.kegworks.com/product.php?productid=16584&amp;cat=421&amp;page=1">Homebrew Kegerator</a> &#8211; Maybe if this startup is bought out I can actually afford this thing to put my homebrewed beer in. The 30-year-old spare fridge in the basement is getting a little&#8230; gamey.</li>
<li><a href="http://www.apsis.ch/pound/">The pound proxy daemon</a> &#8211; I use this. It works well enough, but I&#8217;ve crashed it under load, too. I&#8217;ve also had at least one hosting provider misconfigure it on my behalf, and I had to go and tell them how to fix it :-/</li>
<li><a href="http://damieng.com/blog/2007/11/14/droid-sans-mono-great-coding-font">Droid Sans Mono</a> &#8211; a fantastic coding font. Installing this font is in my post-install routine for all of my desktops.</li>
<li><a href="http://www.dabeaz.com/generators/">Generator tricks for systems programmers</a> &#8211; David Beazley has made available a lot of Python source code and presentation slides from what I imagine was a great talk (if you&#8217;re a systems guy, which I am).</li>
<li><a href="http://www.tbray.org/ongoing/When/200x/2007/10/07/WF-Roundup">The Wide Finder Saga</a> &#8211; I found this just as I was writing Loghetti. There are still some things in Mr. Lundh&#8217;s <a href="http://effbot.org/zone/wide-finder.htm">code</a> that I haven&#8217;t implemented, but it was a fantastic lesson.</li>
<li><a href="http://networking.ringofsaturn.com/Unix/ipsort.php">Using gnu sort for IP addresses</a> &#8211; I&#8217;ve used sort in a lot of different ways over the years&#8230; but not for IP addresses. This is a nice hack for pulling this off with sort, but it doesn&#8217;t scale very well when you have millions of them, due to the sort utility&#8217;s <a href="http://www.ics.uci.edu/~eppstein/161/960118.html">&#8216;divide and conquer&#8217; method of sorting</a>.</li>
<li><a href="http://www.michael-noll.com/wiki/Writing_An_Hadoop_MapReduce_Program_In_Python">Writing an Hadoop/MapReduce Program in Python</a> &#8211; this got me over the hump.</li>
<li><a href="http://www.manamplified.org/archives/2008/03/notes-on-using-ec2-s3.html">Notes on using EC2/S3</a> &#8211; This got me over some other small humps</li>
<li><a href="http://www.crummy.com/software/BeautifulSoup/">BeautifulSoup</a> &#8211; found while searching for the canonical way to screen scrape with Python. I&#8217;d done it a million times in Perl, and you can do it with httplib and regex and stuff in Python if you want, but this way is at least a million times nicer.</li>
</ul>
<p>Well, that&#8217;s a decent enough summary I guess. As you can see, I&#8217;ve been doing a good bit of Python scripting. Most of my code these days is written in Python instead of Perl, in part because I was given the choice, and in part because Python fits my brain and makes me want to write more code, to push myself more. I&#8217;ve also been dealing with things involving &#8220;cloud&#8221; computing and &#8220;scalability&#8221; &#8212; like Hadoop, and EC2/S3. I haven&#8217;t done as much testing of the Google utility computing services, but I&#8217;ve used their various APIs for some things.</p>
<p>So what&#8217;s in your history?</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.protocolostomy.com%2F2008%2F07%2F11%2Fuseful-stuff-2008-first-half%2F';
  addthis_title  = 'Useful+stuff+%26%238211%3B+2008+%26%238211%3B+first+half';
  addthis_pub    = 'jonesy';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.protocolostomy.com/2008/07/11/useful-stuff-2008-first-half/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spring Means Blooming Flowers&#8230; and Ideas</title>
		<link>http://www.protocolostomy.com/2008/04/21/spring-means-blooming-flowers-and-ideas/</link>
		<comments>http://www.protocolostomy.com/2008/04/21/spring-means-blooming-flowers-and-ideas/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 19:31:35 +0000</pubDate>
		<dc:creator>m0j0</dc:creator>
				<category><![CDATA[Big Ideas]]></category>
		<category><![CDATA[Loghetti]]></category>
		<category><![CDATA[Me stuff]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.protocolostomy.com/?p=291</guid>
		<description><![CDATA[I seem to have found a pattern in my own internal workings. In the fall, I work furiously and get a lot done. Around the time of the winter holidays, I almost always do major personal web site changes and upgrades according to a mental list I&#8217;ve compiled over the previous year. In the spring, [...]]]></description>
			<content:encoded><![CDATA[<p>I seem to have found a pattern in my own internal workings. In the fall, I work furiously and get a lot done. Around the time of the winter holidays, I almost always do major personal web site changes and upgrades according to a mental list I&#8217;ve compiled over the previous year.</p>
<p>In the spring, I shake off the winter (I&#8217;m not a fan of winter), I brew my first batch of beer for the season (which symbolizes the end of winter, because I brew outdoors), and my brain starts to be flooded with new ideas. They range from the simplistic (maybe we should consider replacing windows in the house this year), to the slightly odd (why isn&#8217;t there a bluetooth setup that pairs two devices and alerts you if they get out of range, so if my daughter strays too far&#8230;), to the really useful (I should really take on that woodworking project to build that bookcase we desperately need), to the GEEKY!</p>
<p>This year I seem to be having a lot of geeky ideas. The difference is that, this year, I finally feel empowered enough to go after some of them. One idea that has come up is building an online brewer&#8217;s workshop. I would just build a GUI to do this for myself, but then I&#8217;d have to deal with which widget set to use, which platforms to support, and whatever else. Also, the final step in the evolution of a lot of GUIs is webification anyway. So I *think* this might be a job for Python, and I *think* I might try to do this using Django, which is fully supported by my web host (finally &#8211; see yesterday&#8217;s post)!</p>
<p>Brewing is one of those things that you can make as complex as you care to get. I started brewing with a buddy using a Coleman picnic cooler, a few buckets, and some odds and ends from the kitchen. Now I have a full three keg system, with pumps, plate chillers (small plate heat exchangers), fancy false bottoms, cool valves and tubing, and it involves relatively little manual labor. And that complexity can infect recipe development as well. Hops add bitterness by leeching alpha acids into the wort (the liquid that is not yet beer). Hop utilization calculations can be non-trivial and depend on many other factors in your system. Other characteristics depend heavily on the percent of available sugars you&#8217;re able to extract from the grains, your ability to keep a mash at a given temperature for a fixed period of time. This is easier to predict if you know, for example, the thermal mass of the vessels involved, and how much heat will be lost when you combine water and grain and stir. There are also proteins at work in the mash which can gum things up enough to make draining the liquid off a chore, so knowing what water/grain ratio to use is also important. And how quickly can you bring wort from boiling down to a temperature more friendly to yeast at the end of the cycle?</p>
<p>That&#8217;s a small fraction of the considerations you *could* make when brewing. I didn&#8217;t even touch on pH and water characteristics, or yeast attenuation! Needless to say, brewing with any consistency would be a great challenge and take a good bit more preparation without some tool to help you figure out how much water you&#8217;ll need, how many ounces of hops for how long, and how much grain you need to mash (and for how long), etc. There are lots of tools to help brewers out with this kind of stuff (ProMash is a popular one). The problem I have is that these tools are mostly commercial, proprietary, platform-specific ventures. I&#8217;d like to put one on the web that is at least &#8220;good enough&#8221;, and free for anyone to use. I&#8217;m open source that way (I&#8217;m happy to release the source as well).</p>
<p>Another tool I&#8217;d love to see is one that would let me manage my consulting business online. If BestPractical&#8217;s RT had a good PayPal plugin that would let you charge per ticket or charge for a bundle of so many tickets or something, that&#8217;d be a good start, but I&#8217;ve mucked with the code for RT (it&#8217;s written mostly in Perl), and it wasn&#8217;t a pleasant experience. This wouldn&#8217;t be a complete solution either, because most of my work is *not* simple support tickets, it&#8217;s large projects. For those I&#8217;d like people to be able to pay invoices online. There&#8217;s lots more I&#8217;d like to add on top of that, but that&#8217;s the general gist of it, and in the past I&#8217;ve been unable to find a really good solution, where &#8220;really good&#8221; is a completely nebulous term barely defined in my own head. <img src='http://www.protocolostomy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In addition to those ideas, I registered a couple of domains over the past year, and I hope to do some cool things with them as well if I ever get some time away from work and consulting. Oh yeah &#8211; I&#8217;ll also continue working on loghetti! Keep any eye out for updates. Maybe some people reading this have similar interests and would like to collaborate. Ciao for now!</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.protocolostomy.com%2F2008%2F04%2F21%2Fspring-means-blooming-flowers-and-ideas%2F';
  addthis_title  = 'Spring+Means+Blooming+Flowers%26%238230%3B+and+Ideas';
  addthis_pub    = 'jonesy';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.protocolostomy.com/2008/04/21/spring-means-blooming-flowers-and-ideas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Loghetti 0.9 Released: Now worthy of use!</title>
		<link>http://www.protocolostomy.com/2008/03/29/loghetti-09-released-now-worthy-of-use/</link>
		<comments>http://www.protocolostomy.com/2008/03/29/loghetti-09-released-now-worthy-of-use/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 03:29:21 +0000</pubDate>
		<dc:creator>m0j0</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Loghetti]]></category>
		<category><![CDATA[Me stuff]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.protocolostomy.com/2008/03/29/loghetti-09-released-now-worthy-of-use/</guid>
		<description><![CDATA[The first released tarball of Loghetti was called the &#8220;IPO&#8221; release. This version actually warranted having an actual version number. I chose 0.9, and we&#8217;ll be moving toward 0.91, in .01 increments to a 1.0 release. Later on I&#8217;ll try to detail a roadmap, but I haven&#8217;t had enough feedback for that yet (though I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>The first released tarball of <a href="http://code.google.com/p/loghetti">Loghetti</a> was called the &#8220;IPO&#8221; release. This version actually warranted having an actual version number. I chose 0.9, and we&#8217;ll be moving toward 0.91, in .01 increments to a 1.0 release. Later on I&#8217;ll try to detail a roadmap, but I haven&#8217;t had enough feedback for that yet (though I&#8217;ve had some feedback, and it&#8217;s going to be worked into Loghetti soon).</p>
<p>So why is it worthy of use now? Here are a list of key features in 0.9:</p>
<ul>
<li>It can take input from stdin or from a log file named as an argument.</li>
<li>You can write your own output plugin without knowing anything at all about Loghetti&#8217;s internals, so doing things like formatting output for MapReduce is Mind Numbingly Easy(tm). An example plugin that formats output for insertion into a database is included in the tarball. You&#8217;ll see that there is nothing loghetti-specific in the code except the name of the defined function: munge()</li>
<li> A few simple code changes and some lazy evaluation later, Loghetti 0.9 is several times faster than the IPO release, which is nice. It can now serve as a reasonable troubleshooting tool on 250MB log files.</li>
<li>Loghetti can report/filter on the key=value pairs in the query string. Passing &#8216;&#8211;urldata=foo:bar&#8217; will return lines where foo=bar in the query string found in the request field.</li>
<li>You don&#8217;t have to get the whole line back in the output. You can tell Loghetti to return only the fields you want. I&#8217;ll document the names of the fields shortly, but for now, you can find them all defined in the apachelogs.py file.</li>
<li>And much, much more!</li>
</ul>
<p>Thanks to Kent Johnson and Doug Hellmann, who signed up and were each a tremendous help both in helping me improve the performance of Loghetti, and teaching me a thing or two along the way.</p>
<p>There is, so far, one outstanding issue that is not yet fixed in 0.9: although I&#8217;ve tested Loghetti against several million log lines by now, others have occasionally found that some broken (malicious?) client software causes log lines to be created which do not conform to the Apache &#8216;combined&#8217; log format. These will (presently) cause Loghetti to exit with an error. This is bad, but apparently is relatively rare. 0.9 does *not* contain a fix for this, because I was unsure which way to go with a solution. At this point, I think that, rather than code for every special case, what might happen is Loghetti will continue processing, and keep lines like this aside in a loghetti.log file, and tell you there were &#8216;x non-conformant lines&#8217;, and to see the log for details. Other ideas on how to deal with this are welcome, of course.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.protocolostomy.com%2F2008%2F03%2F29%2Floghetti-09-released-now-worthy-of-use%2F';
  addthis_title  = 'Loghetti+0.9+Released%3A+Now+worthy+of+use%21';
  addthis_pub    = 'jonesy';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.protocolostomy.com/2008/03/29/loghetti-09-released-now-worthy-of-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hadoop, EC2, S3, and me</title>
		<link>http://www.protocolostomy.com/2008/03/20/hadoop-ec2-s3-and-me/</link>
		<comments>http://www.protocolostomy.com/2008/03/20/hadoop-ec2-s3-and-me/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 02:44:15 +0000</pubDate>
		<dc:creator>m0j0</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Big Ideas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Loghetti]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.protocolostomy.com/2008/03/20/hadoop-ec2-s3-and-me/</guid>
		<description><![CDATA[I&#8217;m playing with a lot of rather large data sets. I&#8217;ve just been informed recently that these data sets are child&#8217;s play, because I&#8217;ve only been exposed to the outermost layer of the onion. The amount of data I *will* have access to (a nice way of saying &#8220;I&#8217;ll be required to wrangle and munge&#8221;) [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m playing with a lot of rather large data sets. I&#8217;ve just been informed recently that these data sets are child&#8217;s play, because I&#8217;ve only been exposed to the outermost layer of the onion. The amount of data I *will* have access to (a nice way of saying &#8220;I&#8217;ll be required to wrangle and munge&#8221;) is many times bigger. Someone read an article about how easy it is to get Hadoop up and running on Amazon&#8217;s EC2 service, and next thing you know, there&#8217;s an email saying &#8220;hey, we can move this data to S3, access it from EC2, run it through that cool Python code you&#8217;ve been working with, and distribute the processing through Hadoop! Yay! And it looks pretty straightforward! Get on that!&#8221;</p>
<p>Oh joyous day.</p>
<p>I&#8217;d like to ask that people who find success with Hadoop+EC2+S3 stop writing <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=873">documentation that make this procedure appear to beÂ  &#8220;straightforward&#8221;</a>. It&#8217;s not.</p>
<p>One thing that *is* cool, for Python programmers, is that you actually don&#8217;t have to write Java to use Hadoop. You can write your <a href="http://www.michael-noll.com/wiki/Writing_An_Hadoop_MapReduce_Program_In_Python">map and reduce code in Python</a> and use it just fine.</p>
<p>I&#8217;m not blaming Hadoop or EC2 really, because after a full day of banging my head on this I&#8217;m still not quite sure which one is at fault. I *did* read a forum post that someone had a similar problem to the one I wound up with, and it turned out to be a bug in Amazon&#8217;s SOAP API, which is used by the Amazon EC2 command line tools. So things just don&#8217;t work when that happens. Tip 1: if you have an issue, don&#8217;t assume you&#8217;re not getting something. Bugs appear to be fairly common.</p>
<p>Ok, so tonight I decided &#8220;I&#8217;ll just skip the whole hadoop thing, and let&#8217;s see how <a href="http://code.google.com/p/loghetti">loghetti </a>runs on some bigger iron than my macbook pro&#8221;. I moved a test log to S3, fired up an EC2 instance, ssh&#8217;d right in, and there I am&#8230; no data in sight, and no obvious way to get at it. This surprised me, because I thought that S3 and EC2 were much more closely related. After all, Amazon Machine Images (used to fire up said instance) are stored on S3. So where&#8217;s my &#8220;s3-copy&#8221; command? Or better yet, why can&#8217;t I just *mount* an s3 volume without having to install a <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=931">bunch of stuff? </a></p>
<p>This goes down as one of the most frustrating things I&#8217;ve ever had to set up. It kinda reminds me of the time I had to set up a beowulf cluster of about 85 nodes using donated, out-of-warranty PC hardware. I spent what seemed like months just trying to get the thing to boot. Once I got over the hump, it ran like a top, but it was a non-trivial hump.</p>
<p>As of now, it looks like I&#8217;ll probably need to actually install my own image. A good number of the available public images are older versions of Linux distros for some reason. Maybe people have orphaned them and gone to greener pastures. Maybe they&#8217;re in production and haven&#8217;t seen a need to change them in any way. I&#8217;ll be registering a clean install image with the stuff I need and trudge onward.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.protocolostomy.com%2F2008%2F03%2F20%2Fhadoop-ec2-s3-and-me%2F';
  addthis_title  = 'Hadoop%2C+EC2%2C+S3%2C+and+me';
  addthis_pub    = 'jonesy';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.protocolostomy.com/2008/03/20/hadoop-ec2-s3-and-me/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
