logrotate -d /etc/logrotate.conf

Category: Monitoring & Observability

logrotate -d /etc/logrotate.conf

Dry-run logrotate to debug configs

Debug mode prints every decision logrotate would make, which files rotate, when, and why, without touching any log. Use it to test config changes safely, including files included from /etc/logrotate.d. Errors show exactly which directive is misconfigured.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.