tengine 2.3.2不能支持日志抽样功能了吗

xe55xuns  于 2022-11-06  发布在  其他
关注(0)|答案(2)|浏览(120)

2.3.2不能支持日志抽样功能了吗

dphi5xsq

dphi5xsq1#

支持的,和Nginx官方这个功能一致 http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log。

map $status $loggable {
    ~^[23]  0;
    default 1;
}

access_log /path/to/access.log combined if=$loggable;
xdnvmnnf

xdnvmnnf2#

支持的,和Nginx官方这个功能一致 http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log。

map $status $loggable {
    ~^[23]  0;
    default 1;
}

access_log /path/to/access.log combined if=$loggable;

您好,不是符合条件记录日志,是之前2.1.2版本支持ratio=0.1这个参数
access_log /path/to/access.log combined ratio=0.1

相关问题