Test a logrotate configuration without rotating
test logrotate config | why is my log not rotating | check logrotate configuration | logrotate dry run | logrotate | configuration | testinglogrotate -d /etc/logrotate.d/nginxWith -d, logrotate reads the configuration, reports syntax errors and describes for each log file whether and why it would be rotated. Nothing is changed, and the state file stays untouched as well. The output contains lines like log does not need rotating that explain why a rotation does not happen.
Note: If everything looks plausible, logrotate -vf with the same file forces a real rotation.
Also searched as
- test logrotate config
- why is my log not rotating
- check logrotate configuration
- logrotate dry run