(no subject)

andrew morgan morgan at orst.edu
Wed Mar 21 21:32:44 GMT 2001


On Wed, 21 Mar 2001, Chris Cheltenham wrote:

> does anyone know how to port the syslog message to another location other than
> /var/adm/messages or /usr/local/samba/var ?

Samba uses the LOG_DAEMON facility by default.  We usually change this to
LOG_LOCAL7 so we can separate samba logs from everything else.

Look in source/include/local.h:

#define SYSLOG_FACILITY LOG_LOCAL7

Then tell syslog to log it somewhere else in /etc/syslog.conf:

local7.info	/var/log/samba-log/samba-log
local7.none	/var/adm/messages

Hope this helps...

	Andy





More information about the samba-technical mailing list