From 8581edad11f3646d89210692e484deee9d1f3336 Mon Sep 17 00:00:00 2001 From: shuaiZend Date: Mon, 29 Apr 2024 21:22:54 +0800 Subject: [PATCH] Update request-log2file.w MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化上传字段 --- plugins/request-log2file.w | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/request-log2file.w b/plugins/request-log2file.w index be236c2..5d2fb0f 100644 --- a/plugins/request-log2file.w +++ b/plugins/request-log2file.w @@ -94,9 +94,11 @@ function _M.log_pre_filter(waf) waf_rule_id = waf.rule_id end local info = { + ["__time__"] = ngx.var.msec, ["block_action"] = block_action, ["waf_rule_id"] = waf_rule_id, ["time"] = ngx.var.time_iso8601, + ["real_client_ip"] = waf.ip, ["server_addr"] = ngx.var.server_addr, ["remote_addr"] = ngx.var.http_x_forwarded_for, ["scheme"] = ngx.var.scheme,