logrotate compress issue
Hi ,
I've been fighting a lot with this problem and no good results.
I want logrotate to compress all the logs coming from devices,but
logrotate rotates but doesn't compress log messages
This issue started happening from last few days
Do you know what is causing this issue?
I attached my logrotate.conf
/var/log/remotelog//.log {
daily
dateext
rotate 90
copytruncate
missingok
compress
notifempty
create 640 root root
sharedscripts
postrotate
find /var/log/remotelog -type f -mtime +91 -delete
/bin/systemctl restart syslog-ng >/dev/null 2>&1 || true
endscript
}
Responses