<?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>MrBrown blob &#187; cronolog</title>
	<atom:link href="http://charles.lescampeurs.org/tag/cronolog/feed" rel="self" type="application/rss+xml" />
	<link>http://charles.lescampeurs.org</link>
	<description>random bits.</description>
	<lastBuildDate>Sat, 10 Apr 2010 09:02:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rotate Apache logs with Cronolog</title>
		<link>http://charles.lescampeurs.org/2008/06/04/rotate-apache-logs-with-cronolog</link>
		<comments>http://charles.lescampeurs.org/2008/06/04/rotate-apache-logs-with-cronolog#comments</comments>
		<pubDate>Wed, 04 Jun 2008 05:33:20 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Logs]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cronolog]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=20</guid>
		<description><![CDATA[Cronolog is log rotation program which gives you a lot of options to template the log destination files. The common use is to split logs by year / month / day. Here is how to configure Apache to send log entries to cronolog : CustomLog "&#124;/usr/sbin/cronolog /home/log/apache2/%Y-%m-%d_domain.com_access.log" combined This will create a log file named [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F06%2F04%2Frotate-apache-logs-with-cronolog"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F06%2F04%2Frotate-apache-logs-with-cronolog&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><a title="cronolog log rotation" href="http://cronolog.org/" target="_blank">Cronolog</a> is log rotation program which gives you a lot of options to template the log destination files. The common use is to split logs by year / month / day.</p>
<p>Here is how to configure Apache to send log entries to cronolog :</p>
<pre>CustomLog "|/usr/sbin/cronolog /home/log/apache2/%Y-%m-%d_domain.com_access.log" combined</pre>
<p>This will create a log file named <em>2008-06-02_domain.com_access.log</em> for today.</p>
<p>Cronolog reads log entries from standard input and writes them to the output file specified by your template.</p>
<h2>More examples</h2>
<ul>
<li>Rotate by month :</li>
</ul>
<pre>CustomLog "|/usr/sbin/cronolog /home/log/apache2/%Y-%m_domain.com_access.log" combined</pre>
<ul>
<li>Rotate by week number :</li>
</ul>
<pre>CustomLog "|/usr/sbin/cronolog /home/log/apache2/%Y-%W_domain.com_access.log" combined</pre>
<ul>
<li>Rotate hourly</li>
</ul>
<pre>CustomLog "|/usr/sbin/cronolog /home/log/apache2/%H_domain.com_access.log" combined</pre>
<h2>Links</h2>
<ul>
<li><a title="cronolog usage" href="http://cronolog.org/usage.html" target="_blank">All cronolog templating flags</a></li>
<li><a title="Apache 2 mod_log_config" href="http://httpd.apache.org/docs/2.0/mod/mod_log_config.html" target="_blank">Apache 2 mod_log_config documentation</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2008/06/04/rotate-apache-logs-with-cronolog/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
