I noticed once a warning in the /var/log/samba/log. file:
[2018/04/13 20:51:05.280655, 1] ../lib/param/loadparm.c:1629(lpcfg_do_global_parameter) WARNING: The "syslog" option is deprecated
As reported, the “syslog” option is obsolete, and to prevent the warning from appearing, it must be removed from the configuration.
I opened the configuration file in a text editor:
sudo nano /etc/samba/smb.conf
Found this option:
syslog = 0
And commented on it:
#syslog = 0
After the changes you need to restart samba, you can do this:
sudo service samba restart sudo restart smbd sudo restart nmbd
After that, the warning no longer appeared.