Rotate nginx log files by the hour.  Call by cron.  In Perl.