What is the best tool to aggregate traffic stats from multiple nginx servers?

Posted by gekkz on Server Fault See other posts from Server Fault or by gekkz
Published on 2010-03-12T14:05:59Z Indexed on 2010/03/12 14:07 UTC
Read the original article Hit count: 108

Filed under:
|
|
|

The setup:

2 or more nginx machines
each machine has the same virtual hosts
traffic is load balanced via DNS to each machine

I need to figure out what are the best tools to use to get some traffic stats, mostly interested in amount of hits and total traffic in gigabytes. Obviously, the log information will come from nginx, formatted like this:

  log_format  main  '$remote_addr $host $remote_user [$time_local] "$request" '
                    '$status $body_bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"';

© Server Fault or respective owner

Related posts about nginx

Related posts about linux