[CentOS] Autofs and mount/umount entries in the nfs server logs
filbranden at gmail.com
Fri Jun 20 22:57:48 UTC 2008
On Fri, Jun 20, 2008 at 9:54 AM, Rob Lines <rlinesseagate at gmail.com> 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
# create a new log for the daemon facility
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
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!
More information about the CentOS