Modified logrotate method to take all logs from /var/log/ngnix path  and added cron job for logrotation