How to rotate the samba logs with logrotate?
Issue
- The old log files are still present after rotation by logroate.
-rw-r--r-- 1 root root 206983237 Dec 13 03:16 log.nmbd-20151213
-rw-r--r-- 1 root root 40219811 Dec 13 03:16 log.nmbd.old.gz-20151213
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.