Re: [SLUG] Syslogd and klogd

From: Eben King (eben1@tampabay.rr.com)
Date: Wed May 12 2004 - 21:56:37 EDT


On Wed, 12 May 2004, Russell Hires wrote:

> I've got a problem where my sound subsystem crashes (long story there) and it
> sends messages to kern.log and syslog. What I'm wanting to do is capture
> those few messages and send them to /dev/null. So far, because they are
> sooooo repetitious, these messages fill up my log files and then my /var
> directory. So...I looked up klogd and syslogd to find out if they could
> isolate certain messages, but I don't quite see a way to do that.
>
> Any ideas?

First guess is you could create a process which is something like

tail -f $PIPE | grep -v $SOUND_MESSAGE >> kern.log

and have syslogd write all relevant messages to $PIPE.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
Are you confident that you appear to be professional in your electronic
communication?  Consider this: A: No
                               Q: Can I top post? from nick@xx.co.uk

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:09:23 EDT