$time_iso8601 is not set for invalid HTTP?

Darren Pilgrim list_nginx at bluerosetech.com
Mon Dec 1 16:24:28 UTC 2014

On 12/1/2014 5:23 AM, igorb wrote:
> Maxim Dounin wrote:
>>   Use map instead:
> Thanks, map works nicely :)
>>   avoid using such "timestamped log names" at all as this approach implies
> unneeded overhead on opening/closing files for each request.
> I use open_log_file_cache to mitigate this. Are there still problems with
> that? I would prefer to keep things simple and avoid explicit log rotation.
> The latter requires in my case more setup over a simple Docker container
> with just nginx and extra log processing to extract monthly logs to feed
> those to webalizer.

If you're using Docker, use the Docker log collector, use the syslog 
patch for nginx and have it log externally, or create a volume for the 
logs and a helper container in which you run the log tools.  It really 
should not be nginx's or its container's job to manage/rotate logs.

More information about the nginx mailing list