samba4 equiv logging for samba3 log level and log file

18 views
Skip to first unread message

spac...@gmail.com

unread,
Oct 25, 2017, 1:23:15 PM10/25/17
to
Seeing
WARNING: The "syslog" option is deprecated

I can't figure out a way to use the new logging parameter
to recreate the old way of (from /etc/samba/smb.conf):

syslog = 0
log file = /var/samba/log/log.%m
log level = 1 auth:10

(This is from the Unix and Linux System Administration book,
and I've used it for several years.)

The host runs Solaris 10 patched to samba-4.4.17.

I tried:
logging = syslog@0 /var/samba/log/log.%m@"1 auth:10"

It didn't work as expected.
Things were ending up in syslog, while I wasn't getting
per-host logs.

The smb.conf manpage says (about logging):

The parameter is
a list of backends, where each backend is specified as
backend[:option][@loglevel].

Default: logging =
Example: logging = syslog@1 file

Reply all
Reply to author
Forward
0 new messages