NGINX module reporting 0 time to access.log

2014-12-01 Thread chase.holland
Hey all, We've written a module to connect NGINX / OpenResty with ZMQ endpoints (https://github.com/neloe/ngx_zmq), but all requests through the module report a 0.000 time back to access.log, making it impossible to determine which of our subsystems is the problem area in terms of latency. Is ther

Re: what is wrong live stream http conf

2014-12-01 Thread ibn
Hey Baroc, I know it's now two years but maybe you found a solution for this problem? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,232525,255248#msg-255248 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ng

Re: $time_iso8601 is not set for invalid HTTP?

2014-12-01 Thread Oleksandr V. Typlyns'kyi
Today Dec 1, 2014 at 08:24 Darren Pilgrim wrote: > 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 c

Re: $time_iso8601 is not set for invalid HTTP?

2014-12-01 Thread Darren Pilgrim
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 the

Re: $time_iso8601 is not set for invalid HTTP?

2014-12-01 Thread Maxim Dounin
Hello! On Mon, Dec 01, 2014 at 08:23:53AM -0500, igorb wrote: > > 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

Re: $time_iso8601 is not set for invalid HTTP?

2014-12-01 Thread igorb
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 pr

Re: $time_iso8601 is not set for invalid HTTP?

2014-12-01 Thread Maxim Dounin
Hello! On Sat, Nov 29, 2014 at 03:48:24PM -0500, igorb wrote: > I use the if trick to get timestamped log names: > > if ($time_iso8601 ~ "^(\d{4})-(\d{2})") { > set $year $1; > set $month $2; > } > > access_log .../access-$year-$month.log combined; > > However, with nginx/1.4.6 (Ub