Linux Logrotate Configuration Generator (Retention & Compression)
Generate /etc/logrotate.d/ configuration files with daily/weekly rotation, gzip compression, dateext, size limits, and postrotate scripts.
/var/log/nginx/*.log {
daily
rotate 14
maxage 30
missingok
notifempty
compress
delaycompress
dateext
dateformat -%Y%m%d
dateyesterday
create 0640 www-data adm
sharedscripts
postrotate
[ -f /var/run/nginx.pid ] && kill -USR1 $(cat /var/run/nginx.pid)
endscript
}Retains up to specified generations before automated eviction.
Estimated ~85% disk storage savings with background gzip.
Atomic file rotation with new file recreation and custom permissions.
100% Client-Side Generation
Zero server uploads. Your file paths, custom postrotate scripts, and server credentials stay strictly inside your local browser memory.
Full Logrotate Directives Spec
Full support for copytruncate, delaycompress, dateext timestamping, size thresholds, sharedscripts, and su user isolation.
Production Ready & Syntax Tested
Instant generation of /etc/logrotate.d/ configs, logrotate -d dry-run verification commands, and automated installation scripts.