Browse Source

Update request-log2file.w

优化上传字段
pull/60/head
shuaiZend 7 months ago committed by GitHub
parent
commit
8581edad11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      plugins/request-log2file.w

2
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,

Loading…
Cancel
Save