Blackbox Logs

Maxim Dounin mdounin at mdounin.ru
Mon Jun 21 01:26:58 MSD 2010


Hello!

On Fri, Jun 18, 2010 at 04:14:21PM -0500, Alan Gutierrez wrote:

> Maxim Dounin wrote:
> 
> >Actually, most important thing to log is $upstream_response_time.
> >So it's not a good idea to log something in an "apache compatible"
> >format as you are going to log wrong metrics in this case.
> 
> To this point, I'm really looking to create something that is
> *conceptually* compatible to the log format described in the
> original article, a log format geared towards generalized
> performance and security auditing, rather than hit counting. There
> is no need to record thread id, in Nginx, quite obviously. If there
> was a legacy of scripts for the "blackbox" log format described by
> Chris Josephes, that might be a different matter, but there are not.
> My own little Nginx "blackbox" format will include
> $upstream_response_time as you suggest.

Just a quick note:

You may also want to include $upstream_addr and 
$upstream_status for configurations with more than one upstream 
server, and $upstream_cache_status for configurations using 
proxy/fastcgi cache.

Other things to consider: $gzip_ratio, $pipe.

Maxim Dounin



More information about the nginx mailing list