Skip to content

Commit 5bec616

Browse files
Remove hyphen from log key names
1 parent efa7e87 commit 5bec616

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apache-config/vshn-logging.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LogLevel ${LOGLEVEL}
44
ErrorLog ${ERRORLOG}
55

66
# Log Format definitions
7-
LogFormat "{ \"apache-access\": { \"remoteHost\":\"%a\", \"username\":\"%u\", \"timestamp\":\"%{%Y-%m-%d %H:%M:%S}t.%{usec_frac}t\", \"requestLine\":\"%r\", \"status\":%>s, \"responseBodySize\":%B, \
7+
LogFormat "{ \"apacheAccess\": { \"remoteHost\":\"%a\", \"username\":\"%u\", \"timestamp\":\"%{%Y-%m-%d %H:%M:%S}t.%{usec_frac}t\", \"requestLine\":\"%r\", \"status\":%>s, \"responseBodySize\":%B, \
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, \

opt/transform-alert-message.awk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ BEGIN {
239239

240240
if ( Id != "" ) {
241241
json_out = json_out "{ "
242-
json_out = json_out "\"modsec-alert\": {"
242+
json_out = json_out "\"modsecAlert\": {"
243243
json_out = json_out "\"description\": \"" Description "\","
244244
json_out = json_out "\"id\": " Id ","
245245
json_out = json_out "\"client\": \"" Client "\","
@@ -255,7 +255,7 @@ BEGIN {
255255
json_out = json_out "\"rev\": \"" Rev "\","
256256
json_out = json_out "\"ver\": \"" Ver "\","
257257
json_out = json_out "\"maturity\": \"" Maturity "\","
258-
json_out = json_out "\"rule_template\": \"# ModSec Rule Exclusion: " Id " : " Msg " (severity: " Maturity " " Severity ")\""
258+
json_out = json_out "\"ruleTemplate\": \"# ModSec Rule Exclusion: " Id " : " Msg " (severity: " Maturity " " Severity ")\""
259259
json_out = json_out "} }"
260260

261261
n_tags = 0

0 commit comments

Comments
 (0)