pull/582/head
Mr Chen 12 months ago
parent 322698f345
commit 5499c8795f
  1. 1
      plugins/webstats/conf/init.sql
  2. 4
      plugins/webstats/lua/webstats_log.lua

@ -85,6 +85,7 @@ CREATE TABLE `request_stat`(
`status_402` INTEGER DEFAULT 0,
`status_403` INTEGER DEFAULT 0,
`status_404` INTEGER DEFAULT 0,
`status_499` INTEGER DEFAULT 0,
`http_get` INTEGER DEFAULT 0,
`http_post` INTEGER DEFAULT 0,
`http_put` INTEGER DEFAULT 0,

@ -260,7 +260,7 @@ log_by_lua_block {
end
end
if ngx.re.find("500,501,502,503,504,505,506,507,509,510,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,421,422,423,424,425,426,449,451", tostring(status_code), "jo") then
if ngx.re.find("500,501,502,503,504,505,506,507,509,510,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,421,422,423,424,425,426,449,451,499", tostring(status_code), "jo") then
local field = "status_"..status_code
request_stat_fields = request_stat_fields .. ","..field.."="..field.."+1"
end
@ -392,7 +392,7 @@ log_by_lua_block {
end
end
if ngx.re.find("500,501,502,503,504,505,506,507,509,510,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,421,422,423,424,425,426,449,451", tostring(status_code), "jo") then
if ngx.re.find("500,501,502,503,504,505,506,507,509,510,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,421,422,423,424,425,426,449,451,499", tostring(status_code), "jo") then
local field = "status_"..status_code
request_stat_fields[field] = 1
end

Loading…
Cancel
Save