<?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>Technitribe &#187; ajfarrell</title>
	<atom:link href="http://blog.peopleareducks.com/author/ajfarrell/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.peopleareducks.com</link>
	<description>not at all like a diatribe</description>
	<lastBuildDate>Sat, 27 Mar 2010 01:00:48 +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>Because old archived logs on secure servers are pointless&#8230;</title>
		<link>http://blog.peopleareducks.com/2009/09/09/because-old-archived-logs-on-secure-servers-are-pointless/</link>
		<comments>http://blog.peopleareducks.com/2009/09/09/because-old-archived-logs-on-secure-servers-are-pointless/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 04:33:59 +0000</pubDate>
		<dc:creator>ajfarrell</dc:creator>
				<category><![CDATA[/dev/null]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.peopleareducks.com/?p=83</guid>
		<description><![CDATA[Often we get Nagios alerts letting us know that your kernel is about to panic and your server is going to crash and die because read/write operations are going to FAIL MISERABLY. Obviously being a systems administrator it becomes your job to figure out what can go, what needs to stay, et al. I&#8217;ve found [...]]]></description>
			<content:encoded><![CDATA[<p>Often we get Nagios alerts letting us know that your kernel is about to panic and your server is going to crash and die because read/write operations are going to FAIL MISERABLY.</p>
<p>Obviously being a systems administrator it becomes your job to figure out what can go, what needs to stay, et al.</p>
<p>I&#8217;ve found that archived logs (logrotate) on a secure server often can be quite large. And on a low-end configuration with a server with only 40G it becomes a nuisance when you have a few Gb of data&#8230;<br />
And you all probably know this, but Tim asked when I&#8217;d blog. So&#8230; I&#8217;ll make sure!<br />
Having 40 or 50 files is a pain to manually delete. Sure, you could probably rm -f *.1 *.2 *.3 etc etc etc but that becomes too much of a pain.</p>
<p>On BSD systems there is an awesome counter called &#8216;jot&#8217;; it works exactly the opposite of the GNU command &#8216;seq&#8217;; so for a rudimentary example to remove all files it becomes a simple one liner&#8211;</p>
<ul>
<li>jot 6 1 |while read i; do rm -f *.${i};done</li>
<li>seq 1 6|while read i; do rm -f *.${i};done</li>
</ul>
<p>In Emeril fashion: BAM! You&#8217;re now out of the clear.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peopleareducks.com/2009/09/09/because-old-archived-logs-on-secure-servers-are-pointless/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
