Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apache-config/vshn-logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LogLevel ${LOGLEVEL}
ErrorLog ${ERRORLOG}

# Log Format definitions
LogFormat "{ \"apache-access\": { \"remoteHost\":\"%a\", \"username\":\"%u\", \"timestamp\":\"%{%Y-%m-%d %H:%M:%S}t.%{usec_frac}t\", \"requestLine\":\"%r\", \"status\":%>s, \"responseBodySize\":%B, \
LogFormat "{ \"apacheAccess\": { \"remoteHost\":\"%a\", \"username\":\"%u\", \"timestamp\":\"%{%Y-%m-%d %H:%M:%S}t.%{usec_frac}t\", \"requestLine\":\"%r\", \"status\":%>s, \"responseBodySize\":%B, \
\"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\", \
\"uniqueID\":\"%{UNIQUE_ID}e\", \"requestBytes\":%I, \"responseBytes\":%O, \"compressionRatio\":\"%{ratio}n%%\", \
\"requestDuration\":%D, \"modsecTimeIn\":%{ModSecTimeIn}e, \"applicationTime\":%{ApplicationTime}e, \"modsecTimeOut\":%{ModSecTimeOut}e, \
Expand Down
4 changes: 2 additions & 2 deletions opt/transform-alert-message.awk
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ BEGIN {

if ( Id != "" ) {
json_out = json_out "{ "
json_out = json_out "\"modsec-alert\": {"
json_out = json_out "\"modsecAlert\": {"
json_out = json_out "\"description\": \"" Description "\","
json_out = json_out "\"id\": " Id ","
json_out = json_out "\"client\": \"" Client "\","
Expand All @@ -255,7 +255,7 @@ BEGIN {
json_out = json_out "\"rev\": \"" Rev "\","
json_out = json_out "\"ver\": \"" Ver "\","
json_out = json_out "\"maturity\": \"" Maturity "\","
json_out = json_out "\"rule_template\": \"# ModSec Rule Exclusion: " Id " : " Msg " (severity: " Maturity " " Severity ")\""
json_out = json_out "\"ruleTemplate\": \"# ModSec Rule Exclusion: " Id " : " Msg " (severity: " Maturity " " Severity ")\""
json_out = json_out "} }"

n_tags = 0
Expand Down