whitelist valid query params to count for stats
This commit is contained in:
parent
2976515626
commit
85fb01d346
@ -20,6 +20,8 @@ import copy
|
|||||||
from swift.common.utils import split_path, get_logger
|
from swift.common.utils import split_path, get_logger
|
||||||
|
|
||||||
month_map = '_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split()
|
month_map = '_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split()
|
||||||
|
LISTING_PARAMS = set(
|
||||||
|
'path limit format delimiter marker end_marker prefix'.split())
|
||||||
|
|
||||||
|
|
||||||
class AccessLogProcessor(object):
|
class AccessLogProcessor(object):
|
||||||
@ -95,6 +97,7 @@ class AccessLogProcessor(object):
|
|||||||
# (format, path, delimiter, etc.). Save a "1" here
|
# (format, path, delimiter, etc.). Save a "1" here
|
||||||
# to indicate that this request is 1 request for
|
# to indicate that this request is 1 request for
|
||||||
# its respective key.
|
# its respective key.
|
||||||
|
if k in LISTING_PARAMS:
|
||||||
d[k] = 1
|
d[k] = 1
|
||||||
d['client_ip'] = client_ip
|
d['client_ip'] = client_ip
|
||||||
d['lb_ip'] = lb_ip
|
d['lb_ip'] = lb_ip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user