Log files not rotated and growing

Bildschirmfoto 2022-09-30 um 11.33.48
I cannot find any information on log.rpcd_* files. But they are not considered by /etc/logrotate.d/samba and growing. I think you can imagine which problems this might cause.

Can I remove them? How can I ensure they won’t grow to such sizes again?

1 Like

Thanks for the feedback, I’ve created Bug 55435 – New Samba log files log.rpcd_* not covered by logrotate to address this issue.

As a workaround I can suggest something like this:

root@yourserver:~# cat >> /etc/logrotate.d/samba-rpcd <<%EOF
/var/log/samba/log.rpcd_* {
        compress
        create 640 root adm
        missingok
        notifempty
        weekly
        rotate 12
        postrotate
        /usr/bin/killall -HUP /usr/sbin/smbd
        endscript
}
%EOF