I'm using sernet version of samba in CentOS7.6. my smb.conf setting here:
log level = 1 auth_json_audit:3@/var/log/samba/auth.log
max log size = 10000
the problem is:
1. the log isn't rotated correctly. the auth.log.old file is larger that 10000kb. It will be 60MB to serveral GB.
2. samba do not always write new log to auth.log. most of the new log writes to auth.log.old (that's why the log.old file so big) , and only a little few new log write to auth.log.
3. when samba is writing log to auth.log.old , I excute "systemctl reload sernet-samba-ad.service" , samba will write new log to auth.log. but serverl minutes later, it will write new log to auth.log.old again.
No related error is displayed in the samba log. the behavior of log.smbd and log.smbd.old is fine.
This is a known issue which unfortunately exists since a very long time. Please refer to:
The issue which Marc describes there is not related to the variable logfile names. As far as I know we have this issue with all samba (AD) services.
I mark this bug as a duplicate, for now. I'll add some description to bug 9673.
*** This bug has been marked as a duplicate of bug 9673 ***