I have an entry in /etc/rsyslog.conf to forward kern.info to /var/log/martian_test:
Code: Select all
kern.info /var/log/martian_test
I presently have the following in place (using logrotate -f /etc/logrotate.d/martian, no "_test"):
Code: Select all
/var/log/martian_test {
size 8k
hourly
missingok
notifempty
rotate 4
dateext
dateyesterday
delaycompress
compress
compresscmd /bin/xz
compressoptions -9
compressext .xz
copytruncate
sharedscripts
postrotate
/bin/systemctl stop rsyslog && sleep 2; /bin/systemctl start rsyslog
endscript
}
I found this article, https://serverfault.com/questions/39153 ... y-and-size, albeit almost 9 years old, but the manpage conflicts with this detail.
Please NOTE: I have also altered the order of the "*size" and time-associated (hourly) directives and that too has had no effect.