[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Autofs logs
- From: John Summerfied <debian herakles homelinux org>
- To: "Red Hat Enterprise Linux 4 (Nahant) Discussion List" <nahant-list redhat com>
- Subject: Re: Autofs logs
- Date: Wed, 20 Jul 2005 09:13:19 +0800
Mark Farmer wrote:
Hi all
I've been scouring man pages, Google etc but don't seem to be able to
figure this one out.
I'd like to have syslog put automount messages into a file other than
/var/log/messages because we have lots of users who have no home
directory & the messages file is getting very cluttered with mount
failures. I don't want to reduce the level of logging that happens but
simply have automount logs go to /var/log/autofs/automount for example,
but I don't see a way to specify the automounter in syslog.conf
Can anyone tell me how I might do this?
I think there is a syslog replacement that can filter on message
contents try google for that one.
The standard for syslog daemons is to filter by two numbers:
a.b
"a" has names such as daemon, mail and so on and is called "facility."
"b" has names such as crit, info, debug and such and is called priority.
I think, without checking (but the principle applies) that both are
16-bit numbers, and it's these numbers syslogd uses to filter messages
into different file.
What will work is to configure autofs to use on of the "reserved" (aka
local) ones that's currently unused by RHEL and to configure syslogd to
log them some place.
It's is possible this will require source-code changes to autofs: read
the docs to find out whether it is configurable at run-time.
This has the drawback that you have to change autofs each time there's a
new version (including bug-fixes), that you have a non-standard
syslog.conf etc etc. Oh, don't forget to rotate the logs!
If you do decide to take the route of changing the code, I recommend you
make it configurable and offer the patch upstream. If accepted, it might
ease your maintenance effort in the future.
--
Cheers
John
-- spambait
1aaaaaaa computerdatasafe com au Z1aaaaaaa computerdatasafe com au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]