A modern, drop-in replacement for logrotate — written in Rust.
logrustate /etc/logrustate.toml --verboselogrotate has been the de-facto log rotation tool on Linux since 1996. It works — but it was written in C, relies on crond, has a confusing config format, no dry-run mode, and cryptic errors.
logrustate is a modern replacement with a clean TOML config, verbose output, proper dry-run, and full compatibility with legacy logrotate.conf syntax.
curl -fsSL https://raw.githubusercontent.com/anilcan-kara/logrustate/master/install.sh | shcargo install logrustate# /etc/logrustate.toml
[[logs]]
path = "/var/log/nginx/access.log"
rotate = 7 # keep 7 rotated files
compress = true # gzip after rotation
daily = true # rotate daily
missingok = true # don't error if file is missing
notifempty = true # skip rotation if log is emptylogrustate /etc/logrustate.toml --debugSee CONTRIBUTING.md. All PRs welcome.
MIT © Anilcan Kara