|
@@ -5,39 +5,58 @@
|
|
|
# 分隔: tab (\t)
|
|
|
# 前缀: 格式版本。格式变化时递增,方便解析
|
|
|
# 备注:
|
|
|
-# origin_id
|
|
|
+# _origin_id
|
|
|
# 请求源的别名,参考 allowed-sites.conf
|
|
|
-# ver
|
|
|
+# _ver
|
|
|
# 前端配置的版本,定义于 www/conf.js
|
|
|
# remote_addr
|
|
|
# 用户 IP,目前未考虑 XFF
|
|
|
-# level
|
|
|
+# _level
|
|
|
# 实验中。记录切换状态(首次请求为 1。切换失败再次请求为 0,表示不接受切换)
|
|
|
-# switched
|
|
|
+# _switched
|
|
|
# 实验中。记录是否切换到廉价节点(未切换则为空,有切换则记录资源体积大小)
|
|
|
-# bodyhash
|
|
|
+# _bodyhash
|
|
|
# 返回内容的 SHA256,用于统计重复内容
|
|
|
# upstream_http_access_control_allow_origin
|
|
|
# 统计 acao = * 的站点,用于加入可直连列表
|
|
|
-# ref
|
|
|
+# _ref
|
|
|
# 请求 referer,不包括 `https://example.com/-----` 部分
|
|
|
-# mode
|
|
|
+# _mode
|
|
|
# 前端 request.mode 属性
|
|
|
-# type
|
|
|
+# _type
|
|
|
# 前端 request.destination 属性
|
|
|
#
|
|
|
log_format log_proxy escape=none
|
|
|
'02 '
|
|
|
- '$time_iso8601 $_origin_id $_ver $remote_addr '
|
|
|
- '$_level $_switched $upstream_cache_status $request_time '
|
|
|
- '$request_length $bytes_sent '
|
|
|
- '$request_method $_url $status $_bodyhash $upstream_http_access_control_allow_origin '
|
|
|
- '$http_user_agent $_ref $_mode $_type'
|
|
|
+ '$time_iso8601 '
|
|
|
+ '$_origin_id '
|
|
|
+ '$_ver '
|
|
|
+ '$remote_addr '
|
|
|
+ '$_level '
|
|
|
+ '$_switched '
|
|
|
+ '$upstream_cache_status '
|
|
|
+ '$request_time '
|
|
|
+ '$request_length '
|
|
|
+ '$bytes_sent '
|
|
|
+ '$request_method '
|
|
|
+ '$_url '
|
|
|
+ '$status '
|
|
|
+ '$_bodyhash '
|
|
|
+ '$upstream_http_access_control_allow_origin '
|
|
|
+ '$http_user_agent '
|
|
|
+ '$_ref '
|
|
|
+ '$_mode '
|
|
|
+ '$_type'
|
|
|
;
|
|
|
|
|
|
log_format log_www escape=none
|
|
|
'01 '
|
|
|
- '$time_iso8601 $remote_addr $request_time '
|
|
|
- '$request_method $uri $http_host $status '
|
|
|
+ '$time_iso8601 '
|
|
|
+ '$remote_addr '
|
|
|
+ '$request_time '
|
|
|
+ '$request_method '
|
|
|
+ '$uri '
|
|
|
+ '$http_host '
|
|
|
+ '$status '
|
|
|
'$http_user_agent'
|
|
|
;
|