<?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>Silas Sewell - scribe_log</title>
        <atom:link href="http://www.silassewell.com/blog/tag/scribe_log/rss2.xml" rel="self" type="application/rss+xml" />
        <link>http://www.silassewell.com/blog/tag/scribe_log</link>
        <description>Infrastructure Development</description>
        <lastBuildDate>Sat, 08 Jan 2011 00:00:00 GMT</lastBuildDate>
        <generator>http://www.silassewell.com/</generator>
        <language>en</language>
        <sy:updatePeriod>hourly</sy:updatePeriod>
        <sy:updateFrequency>1</sy:updateFrequency>

        <item>
            <title>Pipe Apache (or any) Logs to Scribe</title>
            <link>http://www.silassewell.com/blog/2009/05/12/pipe-apache-or-any-logs-to-scribe/</link>
            <pubDate>Tue, 12 May 2009 00:00:00 GMT</pubDate>
            <dc:creator>silas</dc:creator>
            <category><![CDATA[Fedora]]></category><category><![CDATA[Scribe]]></category><category><![CDATA[scribe_log]]></category><category><![CDATA[Supervisor]]></category><category><![CDATA[Systems Administration]]></category>
            <guid isPermaLink="true">http://www.silassewell.com/blog/2009/05/12/pipe-apache-or-any-logs-to-scribe/</guid>
            <description><![CDATA[<p>I created a simple Python script called <a href="http://github.com/silas/scribe_log" title="scribe_log">scribe_log</a> to tail a log
file and pipe it to Scribe.</p>

<p>I use <a href="http://supervisord.org/" title="Supervisor">supervisor</a> to start and keep the pipe running.</p>

<p>Relevant supervisord.conf configuration:</p>

<pre><code class="prettyprint">[program:scribe.apache.access]
command=/usr/local/sbin/scribe_log --category apache.access --file /var/log/httpd/access_log
</code></pre>

<p>Options</p>

<pre><code class="prettyprint">usage: scribe_log [options]

options:
  -h, --help           show this help message and exit
  --file=FILE          file to tail into Scribe
  --category=CATEGORY  Scribe category
  --host=HOST          destination Scribe host server
  --port=PORT          destination Scribe port
  --prefix=PREFIX      add to the beginning of each log line
  --postfix=POSTFIX    add to the end of each log line
</code></pre>]]></description>
        </item>

    </channel>
</rss>
