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.