Related questions
logrotate compress files after the postrotate script
I have an application generating a really heavy big log file every days (~800MB a day), thus I need to compress them but since the compression takes time, I want that logrotate compress the file after reloading/sending HUP signal …
logrotate suffix: dateext + rotate
Is it possible to use dateext and rotate options at the same time?
config must look like this:
/var/log/verybig.log {
monthly
size=100M
dateext
dateformat .%Y%m
rotate 5
create
missingok
compress
}
and i must get:
/var/log/verybig.…
logrotate cron job not rotating certain logs
I added two scripts in "logrotate.d" directory for my application logs to be rotated.
This is the config for one of them:
<myLogFilePath> {
compress
copytruncate
delaycompress
dateext
missingok
notifempty
daily
rotate 30
}
There is a "logrotate" script in "…