gek*_*kkz 7 linux traffic nginx log-files
设置:
2 or more nginx machines
each machine has the same virtual hosts
traffic is load balanced via DNS to each machine
Run Code Online (Sandbox Code Playgroud)
我需要弄清楚用于获取一些流量统计数据的最佳工具是什么,主要是对点击量和以 GB 为单位的总流量感兴趣。很明显,日志信息会来自nginx,格式如下:
log_format main '$remote_addr $host $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"';
Run Code Online (Sandbox Code Playgroud)