Web lists-archives.com

Re: [Samba] Log rotation issue






Am 01.12.2017 um 11:36 schrieb Anantha Raghava via samba:
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.

I'll give it another try.

See here about your logfile issue https://bugzilla.samba.org/show_bug.cgi?id=12935. As I laready wrote, using copytruncate for logrotate fixed that issue for me. I also assume your system does not use systemd.
I do not use variables so someone else may jump in here.

Sincere,
Achim~

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba