下面是一个完整的配置示例,展示了如何配置ngx_stream_log_module来记录流式服务的日志: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 stream{log_format main'$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time';ac
The ngx_stream_log_module module (1.11.4) writes session logs in the specified format. Example Configuration log_format basic '$remote_addr [$time_local] ' '$protocol $status $bytes_sent $bytes_received ' '$session_time'; access_log /spool/logs/nginx-access.log basic buffer=32k; Directi...
ngx_stream_access_module ngx_stream_core_module ngx_stream_geoip_module ngx_stream_geo_module ngx_stream_js_module ngx_stream_limit_conn_module ngx_stream_log_module ngx_stream_log_module ngx_stream_map_module ngx_stream_proxy_module ngx_stream_realip_module ngx_stream_return_module ngx_strea...
所述ngx_stream_log_module模块(1.11.4)在规定的格式写入会话日志。 示例配置 代码语言:javascript 复制 log_format basic '$remote_addr [$time_local] ' '$protocol $status $bytes_sent $bytes_received ' '$session_time'; access_log /spool/logs/nginx-access.log basic buffer=32k; 指令 句法: access...