Check to see if installed
which logrotate
if not installed run
apt-get install logrotate
check again if installed
which logrotate
place a file inside of /etc/logrotate.d
/tmp/broken.w/* {
daily
dateext
dateformat %d%m%Y
maxage 7
missingok
}
logrotate --force /etc/logrotate.d/nginx
To verify if a particular log is indeed rotating or not and to check the last date and time of its rotation, check the /var/lib/logrotate/status file
cat /var/lib/logrotate/status