Skip to content


On remote logging with syslog

We’ve been doing some interesting things at work, as always, with yet more people and Linux boxes.  And of the side effects of mixing people, Linux boxes, and several locations is this need for some sort of centralized logging.  Luckily we have either syslog-ng or rsyslog daemons installed on each machine, so the only two issues seemed to be reconfiguration of syslog services for remote logging and setup of some log reading/searching tool for everyone to enjoy.

As for log reading and searching, there seems to be no end of tools.  We picked php-syslog-ng, which has web interface, MySQL back-end, access control, and more.  There were a few minor issues during setup and configuration, but overall it seemed to be OK.  I also patched the source code a bit in a few places, just to make it work nicer with our setup and our needs  (both numerical and symbolic priorities, preference for include masks over excludes, and full functionality with disabled caching).  In case you are interested, here is a patch against php-syslog-ng 2.9.8f tarball.

Once everything was up and running and we started looking through logs from all our hosts in the same place, there was one thing that surprised me a lot.  Either I don’t understand the syslog facilities and priorites fully (and I don’t claim that I do), or there is just too many software authors who don’t care much.  Most of our logs are coming in at priority critical.  Even if there isn’t much critical about them.  Emergency is also used way too much.  And there is hardly anything at debug or info or notice levels.  (RT, SpamAssassin, and many other applications seem to be using critical as their default log level).  Luckily, that  almost always is trivial to fix using either the configuration files or applications’ source code directly.

Posted in All, Programming, Sysadmin, Technology.

Tagged with , , , .

See also: Zip vs. Bzip2, Wordpress plugins revisited, Which web service to choose for blogging?, Which loads faster, Web-based personal finance managers.


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Mario A. Spinthiras says

    Hi Leonid,

    Nice to see people tidy up logs from servers left and right , most people DONT!

    Ive used the referred software in your post , I have however replaced them with Zenoss , which I mention a lot in the odd comment here and there (and in my blog A LOT).

    Zenoss is essentially a monitoring system but one of it’s daemons (zen-syslog) handles the best of syslogging remotely. One try won’t harm :)

    Regards,
    Mario

  2. Leonid Mamchenkov says

    Thanks for the tip. I think even already mentioned this tool before here in the comments, and I still haven’t tried it out. But I will eventually :)

Continuing the Discussion

  1. Josh More – Starmind Blog » Small Business Defense – Remote Logging and Analysis linked to this post on January 24, 2010

    [...] nice free option to use is syslog.  It's not as user friendly as some of the commercial systems, but you can't beat the price.  For [...]



Some HTML is OK

or, reply to this post via trackback.



Rss Feed Tweeter button Facebook button Reddit button Linkedin button Delicious button Digg button Flickr button Stumbleupon button Youtube button