[Samba] Log rotation issue
Anantha Raghava
raghav at exzatechconsulting.com
Fri Dec 1 10:36:52 UTC 2017
Hi,
Continuing on the same subject, the VARIABLE SUBSTITUTIONS are not
working. for example, I want to have the date & time attached to the
samba log file. Hence I modified the smb.conf
log file = /var/log/samba/samba.%T.log
The file with name "samba.%T.log" gets created in /var/log/samba folder
and %T will not get substituted with current date & time.
I request for your guidance to correct this part. Also the samba
continues to write into .old file as well and not finding any means to
correct it.
Many thanks for your guidance in advance.
--
Thanks & Regards,
Anantha Raghava
Do not print this e-mail unless required. Save Paper & trees.
On 30/11/17 5:47 PM, Anantha Raghava wrote:
>
> Hi,
>
> We recently migrated the samba-ad-dc from 4.6.5 to 4.7.1. Over a
> period of last 15 days or so we have been observing that although the
> samba log rotates, upon rotation, samba will start writing the logs to
> both the main log file and the <main log>.old file simultaneously.
> While, the main log file rotates properly, instead of deleting old
> file and create a new one on rotation, samba continues to write into
> the <main log>.old file and file size keeps increasing.
>
> Any suggestion to fix it? Also, we need some suggestions to use wild
> card such as %h, %m etc for samba log.
>
> Our smb.conf is shown below.
>
> # Global parameters
> [global]
> netbios name = DC1
> realm = ***********.COM
> server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
> workgroup = ********
> server role = active directory domain controller
> idmap_ldb:use rfc2307 = yes
> ldap server require strong auth = no
>
> #eventlog list = Application System Security SyslogLinux
> eventlog list = Security
> #Log Level
> log level = 3
> log file = /var/log/samba/samba.log
> max log size = 1000000
>
> [netlogon]
> path = /usr/local/samba/var/locks/sysvol/***********.com/scripts
> read only = No
>
> [sysvol]
> path = /usr/local/samba/var/locks/sysvol
> read only = No
>
> [shares]
> comment = For all Users
> path = /home/shares
> read only = No
>
> --
>
> Thanks & Regards,
>
>
> Anantha Raghava
>
> Do not print this e-mail unless required. Save Paper & trees.
>
More information about the samba
mailing list