<?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>Racker Hacker &#187; logrotate</title>
	<atom:link href="http://rackerhacker.com/tag/logrotate/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:07:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Rotating rails logs when using Phusion Passenger</title>
		<link>http://rackerhacker.com/2009/06/26/rotating-rails-logs-when-using-phusion-passenger/</link>
		<comments>http://rackerhacker.com/2009/06/26/rotating-rails-logs-when-using-phusion-passenger/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 15:09:54 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[logrotate]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=944</guid>
		<description><![CDATA[I found a great post on Overstimulate about handling the rotation of rails logs when you use Phusion Passenger. Most of the data for your application should end up in the apache logs, but if your site is highly dynamic, you may end up with a giant production log if you're not careful. Toss this [...]<p><a href="http://rackerhacker.com/2009/06/26/rotating-rails-logs-when-using-phusion-passenger/">Rotating rails logs when using Phusion Passenger</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I found a <a href="http://overstimulate.com/articles/logrotate-rails-passenger">great post</a> on <a href="http://overstimulate.com/">Overstimulate</a> about handling the rotation of rails logs when you use Phusion Passenger.  Most of the data for your application should end up in the apache logs, but if your site is highly dynamic, you may end up with a giant production log if you're not careful.</p>
<p>Toss this into /etc/logrotate.d/yourrailsapplication:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">/var/www/yourrailsapp/log/*.log {
  daily
  missingok
  rotate 30
  compress
  delaycompress
  sharedscripts
  postrotate
    touch /var/www/yourrailsapp/tmp/restart.txt
  endscript
}</pre></div></div>

<p>For a detailed explanation, <a href="http://overstimulate.com/articles/logrotate-rails-passenger">see the post</a> on <a href="http://overstimulate.com/">Overstimulate</a>.</p>
<p><a href="http://rackerhacker.com/2009/06/26/rotating-rails-logs-when-using-phusion-passenger/">Rotating rails logs when using Phusion Passenger</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/06/26/rotating-rails-logs-when-using-phusion-passenger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

