So the other day at work, I needed to modify logrotate.conf for one of our groups. To test my changes, I forced a logrotate.d run in verbose mode to ensure that my changes were applied properly.
The command I used:
logrotate -vf /etc/logrotate.conf
Since I’m predominantly administering CentOS, /etc/logrotate.conf is where my logrotate config file lives. In Debian or Ubuntu however, one might find their logrotate configuration file under /etc/logrotate.d/<hostname>.conf.