Skip to content

Commit e96ae13

Browse files
committed
Quote ModSecAnomalyScoreThreshold(In,Out)
That we don't render invalid json when the values are empty.
1 parent d2cdb0b commit e96ae13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache-config/vshn-logging.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LogFormat "{ \"apacheAccess\": { \"remoteHost\":\"%a\", \"username\":\"%u\", \"t
88
\"referer\":\"%{Referer}i\", \"userAgent\":\"%{User-Agent}i\", \"serverName\":\"%v\", \"serverIP\":\"%A\", \"serverPort\":%p, \"handler\":\"%R\", \"workerRoute\":\"%{BALANCER_WORKER_ROUTE}e\", \"tcpStatus\":\"%X\", \"cookie\":\"%{cookie}n\", \
99
\"uniqueID\":\"%{UNIQUE_ID}e\", \"requestBytes\":%I, \"responseBytes\":%O, \"compressionRatio\":\"%{ratio}n%%\", \
1010
\"requestDuration\":%D, \"modsecTimeIn\":%{ModSecTimeIn}e, \"applicationTime\":%{ApplicationTime}e, \"modsecTimeOut\":%{ModSecTimeOut}e, \
11-
\"modsecAnomalyScoreIn\":%{ModSecAnomalyScoreIn}e, \"modsecAnomalyScoreThresholdIn\":%{ModSecAnomalyScoreThresholdIn}e, \"modsecAnomalyScoreOut\":%{ModSecAnomalyScoreOut}e, \"modsecAnomalyScoreThresholdOut\":%{ModSecAnomalyScoreThresholdOut}e, \"modsecParanoiaLevel\":%{ModSecParanoiaLevel}e } }" \
11+
\"modsecAnomalyScoreIn\":%{ModSecAnomalyScoreIn}e, \"modsecAnomalyScoreThresholdIn\":\"%{ModSecAnomalyScoreThresholdIn}e\", \"modsecAnomalyScoreOut\":%{ModSecAnomalyScoreOut}e, \"modsecAnomalyScoreThresholdOut\":\"%{ModSecAnomalyScoreThresholdOut}e\", \"modsecParanoiaLevel\":%{ModSecParanoiaLevel}e } }" \
1212
extendedjson
1313

1414
CustomLog ${ACCESSLOG} extendedjson "env=!nologging"

0 commit comments

Comments
 (0)