To invoke logrotate manually to debug configuration settings, there is a builtin debug
flag:
# logrotate --debug --verbose /etc/logrotate.conf
To force a log file rotation, regardless of the specified criteria (such as age, minsize, etc.), run:
# logrotate --force --verbose /etc/logrotate.conf
Keep in mind, that you can use individual logrotate configuration files from /etc/logrotate.d/
but settings are inherited from the global logrotate config /etc/logrotate.conf
.
For a comprehensive list of options, have a look at the logrotate manpage.