[Samba] samba 3.6.9 howto tune log files naming?

Karel Lang AFD lang at afd.cz
Wed Sep 17 09:19:17 MDT 2014


Hi guys,
please can someone help me to understand howto setup how the samba log 
files in /var/log/samba are named? It must be something very basic, very 
easy, yet, can't find answer...


my logging option in '/etc/samba/smb.conf':

log file = /var/log/samba/%U-%m.log


expected result name:

username-machinename.log


actual present result:
ls -al /var/log/samba

-rw-r--r--. 1 root root 245885 Sep 17 15:56 intel63-_intel63.log
-rw-r--r--. 1 root root  56198 Sep 17 16:46 lang-intel63.log
-rw-r--r--. 1 root root 107600 Sep 17 16:46 log.nmbd
-rw-r--r--. 1 root root    368 Sep 17 15:53 log.smbd
-rw-r--r--. 1 root root  26339 Sep 17 16:33 %m.log

As you can see there is file "%m.log" which i wouldn't expect there and 
also there is 'underscore' in the 'intel63-_intel63.log' log file which 
i dont understand where that comes from?
(the intel63 is machine name and username is 'lang')


In this particular example i'd expect getting:

-rw-r--r--. 1 root root 245885 Sep 17 15:56 intel63-intel63.log
-rw-r--r--. 1 root root  56198 Sep 17 16:46 lang-intel63.log
-rw-r--r--. 1 root root 107600 Sep 17 16:46 log.nmbd
-rw-r--r--. 1 root root    368 Sep 17 15:53 log.smbd


can someone point me in the right direction, or which doc to read?


Thank you


More information about the samba mailing list