Re: Autofs and mount/umount entries in the nfs server logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Jun 20, 2008 at 9:54 AM, Rob Lines <rlinesseagate@xxxxxxxxx> wrote:
> I would like to continue to see these messages but I would like to
> see them put else where but looking through the documentation for syslog I
> couldn't find any way to separate just those messages out.

I also have the same problem, but until now I hadn't looked for a fix for it.

I downloaded the source code, and it seems to me that automount uses
the "daemon" facility. So, in theory, you should be able to redirect
these messages by setting your syslog.conf like this:

# add daemon.none to the line below to suppress those lines from messages
*.info;mail.none;news.none;authpriv.none;cron.none;daemon.none
     /var/log/messages

# create a new log for the daemon facility
daemon.info
/var/log/automount

Optionally, add a "-" in front of the automount log, specially if you
expect a lot of messages from that daemon.

This might also create side effects, since there are probably other
daemons that use the "daemon" facility, but it actually depends on
what else you are running on the machine (maybe nothing uses that
facility). If that's the case for you, you might want to change the
filename to /var/log/daemon, so it would be automount + some other
things.

The long-term solution for this problem is rsyslog, it permits a much
better filtering of the logs. It will be available in base CentOS from
5.2 from what I heard.

Let us know if that worked!

HTH,
Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux