hi ya bill

yeah....played around with syslog.conf for rh and slackware years
ago.... ( attempted to do ppp/pop3 logging separately etc...

Peter, is is possible to use "automount -daemon localxx" to use a local logging 
facility ?

localxx.*                             /var/log/syslog.autofs

( yeah...am being lazy...did not look at the sources )

----

another option is via cron to manually manipulate the log files

#
# stop logging for a few seconds and use the NEW messages log file
#
/etc/rc.d/init.d/syslog stop
#
mv /var/log/messages /var/log/messages.tmp
grep -v automount /var/log/messages.tmp >  /var/log/messages
grep    automount /var/log/messages.tmp >> /var/log/autofs
#
/etc/rc.d/init.d/syslog start

thanx
alvin


my default syslog.conf:

*.info;mail.none;authpriv.none                          /var/log/messages


adler> # Log anything (except mail) of level info or higher.
adler> # Don't log private authentication messages!
adler> *.info;mail.none;news.none;authpriv.none;daemon.!info   /var/log/messages
adler> 
adler> # Added this line to catch the daemon messages
adler> daemon.*                                                /var/log/daemon.log


> (Linux specific)
> AFAIK, you can only seperate messages in syslog based upon facility, or
> severity level of the message. As such, unless autmounter was a
> facility, the other option would be the severity level. RH by default
> logs everything above (and including) .info into syslog. It is possible
> to seperate the *.info to other files, but it would not be limited to
> automounter (IIRC, nfs has gotten quite verbose as well).
> 
> If this is incorrect, I would like to know.
> 

Reply via email to