Just to chime in, as a general rule I do not mess with .conf files unless I have a really, really good reason for doing so -- Slackware does a pretty good job of configuring stuff by default, methinks.
That being said, logroate
does what you tell it in your files in /etc/logrotate.d
and you can fancy those up to your heart's content. Rotate on size, rotate weekly irrespective of size, compress, don't compress, whatever.
Since you provided an example for NTP log rotation, here' another example (the one I use):
As of right now, the logs look like this:
ls -l /var/log/ntp*
-rw-r--r-- 1 root root 1248 Mar 10 09:01 /var/log/ntp.log
-rw-r--r-- 1 root root 12002 Mar 10 04:40 /var/log/ntp.log.1
-rw-r--r-- 1 root root 1042 Mar 2 04:40 /var/log/ntp.log.2.gz
-rw-r--r-- 1 root root 1497 Feb 24 04:40 /var/log/ntp.log.3.gz
-rw-r--r-- 1 root root 619 Feb 16 04:40 /var/log/ntp.log.4.gz
That's what the delaycompress
won't get compressed until next Sunday.
You can get some good hints just reading through the default rotate files provided with Slackware -- I'm not that smart, I cobbled together the NTP rotate file from one of the defaults, sneaky but effective, eh?
Hope this helps some.