News for hackers. Stuff that matters.
Re:NGINX syslog-ing without breaking the bank or patching th... by jsmeaton on Tuesday November 26, 2013 @04:29PM (#6804363)
Related question - how do you configure logrotate to honour size immediately? In my (limited) experience, logrotate runs once overnight. If you have a log file that expands by 1gb per hour, and you want to rotate it every 500mb, how do you instruct logrotate to handle it?

Do you just crontab logrotate for short intervals, and will that trigger "daily" rotations each time for other configurations?

Re:NGINX syslog-ing without breaking the bank or patching th... by otterley on Tuesday November 26, 2013 @04:35PM (#6804408)
There's no reason why you can't run logrotate more than once a day. You can run a separate instance every 15 minutes if you like, with a separate configuration file that only rotates the short-lived logs.
Re:NGINX syslog-ing without breaking the bank or patching th... by jsmeaton on Tuesday November 26, 2013 @06:12PM (#6804965)
Ok that's the (easy) thing I was missing. Instead of using the main logrotate.conf (that includes logrotate.d/*), use a fully separate logrotate.conf. Thanks.