[Samba] Logrotate

Carlos carlos.hollow at gmail.com
Mon May 14 19:08:01 UTC 2018


More information:

smb.conf about audit..

log level = 1 auth_audit:3
max log size = 5000

Regards;


On 14-05-2018 15:56, Carlos wrote:
> Hi!
>
> I have one problem with my logrotate.
>
> Samba version:
>
> Samba 4 7.7 (compilated)
>
> S.O.:
>
> Ubuntu 14.04 /16.04
>
> Samba logs file:
>
> /opt/samba/var/
>
> Logrotate File:
>
> cat /etc/logrotate.d/samba
>
> -- 
>
> /opt/samba/var/log.samba
>
> {
>   rotate 10
>         daily
>         compress
>         dateext
>         size 100M
>         nomail
>         missingok
>         notifempty
>         create 644 root root
>         #postrotate
>         #        systemctl stop samba &> /dev/null
>         #        systemctl start samba &> /dev/null
>         #endscript
> }
>
> -- 
>
>
> My problem is, when logrotate is executed, log is rotate but after , 
> don't log messages anymore, log.samba is was"zero"., is need restart 
> in samba, then log message is back.
>
>
> Any idea?
>
>
> Regards;
>




More information about the samba mailing list