Small Mosaic


Categories:

/books
/career
/codinghorrors
/events
/geekstuff
/justdont
/languages
/languages/bash
/linkshot
/magazines
/meta
/misctech
/movies
/nottech
/operatingsystems
/operatingsystems/linux
/operatingsystems/linux/debian
/operatingsystems/solaris
/perl
/presentations
/programming
/python
/ruby
/security
/security/apache
/security/tools
/serversmells
/services
/services/dns
/sites
/specifications
/sysadmin
/testing
/tools
/tools/commandline
/tools/firefox
/tools/gui
/tools/network
/tools/online
/tools/online/greasemonkey
/tools/puppet
/unixdaemon

Archives:

July 20111
June 20112
May 20113
April 20112
March 20117
January 20111
December 20103
November 20103
August 20101
July 20101
June 20104
May 20102
April 20101
March 20108
February 20101
January 20102
Full Archives

Tue, 03 Feb 2009

Splitting Syslogs by Facility
Logs are a wonderful thing. If done correctly they point out the source of all errors, show you what's running slow and contain useful information on how your system is running. At every place I've ever worked they've been busy, full of odd one offs and too often overlooked.

I'm going to be doing a fair bit of log processing next week so expect lots of little toolchain scripts like syslog-splitter.pl to be checked in to git and mentioned here.

syslog-splitter takes a logfile as an argument and breaks the logfiles in to many smaller units, one file per facility (which contains all the lines for that facility from the logfile), to make it easier to process. I seem to invoke it followed by wc -l out/* | sort -nr when on new machines to work out where I need to invest some time. Over the next week or so I'll come back to the topic and show how I'm reducing the noise to help me find the important lines.

Like this post? - Digg Me! | Add to del.icio.us! | reddit this!

Posted: 2009/02/03 21:49 | /sysadmin | Permanent link to this entry | This entry and same date


books career codinghorrors events geekstuff justdont magazines meta misctech movies nottech operatingsystems/linux operatingsystems/linux/debian operatingsystems/solaris perl programming python ruby security security/apache security/tools serversmells services/dns sites sysadmin testing tools tools/commandline tools/firefox tools/gui tools/network tools/online tools/online/greasemonkey tools/puppet unixdaemon

Copyright © 2000-2010 Dean Wilson XML feed logo