I have a new favorite term: M…

I have a new favorite term: Meat Cloud. http://is.gd/Ega

No Comments

Google considers 4.9MW a “smal…

Google considers 4.9MW a “small” Data center.

No Comments

. . . “to eliminate any inaccu…

. . . “to eliminate any inaccuracies that can occur when measuring small values.”

No Comments

From the article: “It is worth…

From the article: “It is worth noting that we only show data for facilities with an actual IT load above 5MW, ” . . .

No Comments

RT @google: Data center effici…

RT @google: Data center efficiency measurements for Q2 now available http://bit.ly/EwgLr

No Comments

My Father, ladies and gentleme…

My Father, ladies and gentlemen. http://tinyurl.com/nbpctq

No Comments

You really can’t understand yo…

You really can’t understand your addiction to the network until trapped in a house without it. http://myloc.me/7kyr

No Comments

Mary Isobel ‘Mollie’ Sugden (2…

Mary Isobel ‘Mollie’ Sugden (21 July 1922 – 1 July 2009) — I certainly hope someone is watching after her pussy. http://tinyurl.com/n72loy

No Comments

Just watched Burn After Readin…

Just watched Burn After Reading. Frakkin’ hilarious. Coen brothers nailed it.

No Comments

Syslog Project: Limiting Logfile Size

I had a busy weekend and Monday, so I didn’t get to work on this project as much as I would have liked.

Today, I worked on splitting out the emerg, crit, and alert messages so they may be acted upon more rapidly.  I also got the max file size with rotation set up for all the files that will be read by SEC.  The rotation was incredibly simple with rsyslog.

After today’s work (and some new filesystem creation) the config file for rsyslog looks like this:

$ModLoad immark
$ModLoad ommail
$MarkMessagePeriod 1200
$ModLoad imuxsock
$ModLoad imudp
$UDPServerAddress *
$UDPServerRun 514
$ModLoad imtcp

$template HostDirs,"/logs/archive/%HOSTNAME%/%$year%/%$month%/%$day%/%syslogfacility-text%-%syslogseverity-text%.log"

$outchannel all_log, /logs/current/all.log, 52428800, /logs/current/rotate.all.log.sh
$outchannel emerg_log, /logs/current/emerg.log, 52428800, /logs/current/rotate.emerg.log.sh
$outchannel crit_log, /logs/current/crit.log, 52428800, /logs/current/rotate.crit.log.sh
$outchannel alert_log, /logs/current/alert.log, 52428800, /logs/current/rotate.alert.log.sh

*.* ?HostDirs
& $all_log

*.=emerg $emerg_log

*.=alert $alert_log

*.=crit $crit_log

Unless something unforeseen comes up, I think I’m probably done with the rsyslog config file.  All the heavy lifting will be done by SEC.

First, I’ll write SEC config files that parse through the emerg, alert, and crit logs in the same way a Perl script does today.  It shouldn’t be too hard to port a Perl script in to SEC config language.  The hard part will be the handling of everything that goes in to all.log.

This morning, rsyslog 4.2.0 was released with a tag of STABLE.  Given the stable tag, I’ll probably update my package to 4.2.0 and start using it in a few days.

No Comments