logging

This parameter configures logging backends. Multiple
backends can be specified at the same time, with different log
levels for each backend. The parameter is a list of backends,
where each backend is specified as backend[:option][@loglevel].

The 'option' parameter can be used to pass backend-specific
options.

The log level for a backend is optional, if it is not set for
a backend, all messages are sent to this backend. The parameter
determines overall log levels,
while the log levels specified here define what is sent to the
individual backends.

When is set, it overrides the
and parameters.

Some backends are only available when Samba has been compiled
with the additional libraries. The overall list of logging backends:


syslog
file
systemd
lttng
gpfs
ringbuf


The ringbuf backend supports an
optional size argument to change the buffer size used, the default is 1 MB:
ringbuf:size=NBYTES

Example: syslog@1 file

Supported on: At least Microsoft Windows 7 or Windows Server 2008 family

logging

Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Samba\smb_conf\logging
Value Namelogging
Value TypeREG_SZ
Default Value

samba.admx

Administrative Templates (Computers)