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

Re: Autofs logs



On Tue, 2005-07-19 at 16:08 +0100, 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.

Mark,

As John mentioned, you could use syslog-ng, but it's not supported by
Red Hat.  To my knowledge, there is no way to get autofs logs elsewhere
because they're actually coming from the kernel.  They are not coming
from the automount processes, but from the kernel module named autofs.
Since they're kernel messages, they're logged to /var/log/messages.

John mentioned changing source code to get autofs to log to LOCAL1 or
whatever.  That would work, but you'd be unsupported again.

I would consider submitting a support request asking for an autofs
module option (to be placed in /etc/modules.conf) that would allow you
to configure autofs syslog to another facility.

modinfo -p autofs shows there are currently zero parameters you could
mess with in modules.conf  :(

FYI, Red Hat inherits autofs4 from kernel.org.  You might subscribe to
this list and ask the question there:
http://linux.kernel.org/mailman/listinfo/autofs

If the autofs maintainers add a module option for syslog facility, you
could then push Red Hat to port that change into a RHEL 4 update.

/Brian/

-- 
       Brian Long                      |         |           |
       IT Data Center Systems          |       .|||.       .|||.
       Cisco Linux Developer           |   ..:|||||||:...:|||||||:..
       Phone: (919) 392-7363           |   C i s c o   S y s t e m s


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