diff --git a/plugins/webstats/conf/init.sql b/plugins/webstats/conf/init.sql index 211e4886a..63a1219ca 100644 --- a/plugins/webstats/conf/init.sql +++ b/plugins/webstats/conf/init.sql @@ -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, diff --git a/plugins/webstats/lua/webstats_log.lua b/plugins/webstats/lua/webstats_log.lua index 148f3b309..693424770 100644 --- a/plugins/webstats/lua/webstats_log.lua +++ b/plugins/webstats/lua/webstats_log.lua @@ -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