Logrotate is very useful command for automatically reduce some disk space, for example noticed that the disk was extremely full by Apache access log, MySQL queries log or NGINX server logs. Once you have configured test your configuration manually can run the logrotate.
--force logrotate to force the rotation,
Simple configurations are,
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 restart > /dev/null