|
253 | 253 | "body": ""
|
254 | 254 | },
|
255 | 255 | "expected": {
|
256 |
| - "audit_log": "\\[msg \"testmsg\"\\]", |
| 256 | + "audit_log": "\\[msg \"testmsg\"\\] \\[data \"testdata\"\\] \\[severity \"7\"\\] \\[ver \"\"\\] \\[maturity \"0\"\\] \\[accuracy \"0\"\\] \\[tag \"testtag1\"\\] \\[tag \"testtag2\"\\]", |
257 | 257 | "error_log": "",
|
258 | 258 | "http_code": 403
|
259 | 259 | },
|
260 | 260 | "rules": [
|
261 | 261 | "SecRuleEngine On",
|
262 | 262 | "SecDefaultAction \"phase:1,nolog,auditlog,deny,status:403\"",
|
263 |
| - "SecRule ARGS \"@contains test2\" \"id:1557,phase:1,multiMatch,block,log,t:none,t:urlDecode,t:lowercase,msg:'testmsg'\"", |
| 263 | + "SecRule ARGS \"@contains test2\" \"id:1557,phase:1,multiMatch,block,log,t:none,t:urlDecode,t:lowercase,msg:'testmsg',logdata:'testdata',severity:'DEBUG',tag:'testtag1',tag:'testtag2'\"", |
264 | 264 | "SecAuditEngine RelevantOnly",
|
265 | 265 | "SecAuditLogParts ABCFHZ",
|
266 | 266 | "SecAuditLog /tmp/test/modsec_audit_multimatch_1.log",
|
|
302 | 302 | "body": ""
|
303 | 303 | },
|
304 | 304 | "expected": {
|
305 |
| - "audit_log": "\\[msg \"tstmsg\"\\]", |
| 305 | + "audit_log": "\\[msg \"testmsg\"\\] \\[data \"testdata\"\\] \\[severity \"7\"\\] \\[ver \"\"\\] \\[maturity \"0\"\\] \\[accuracy \"0\"\\] \\[tag \"testtag1\"\\] \\[tag \"testtag2\"\\]", |
306 | 306 | "error_log": "",
|
307 | 307 | "http_code": 403
|
308 | 308 | },
|
309 | 309 | "rules": [
|
310 | 310 | "SecRuleEngine On",
|
311 | 311 | "SecDefaultAction \"phase:1,nolog,auditlog,deny,status:403\"",
|
312 |
| - "SecRule ARGS \"@streq tEst2\" \"id:1558,phase:1,multiMatch,block,log,t:none,t:trim,t:lowercase,msg:'tstmsg'\"", |
| 312 | + "SecRule ARGS \"@streq tEst2\" \"id:1558,phase:1,multiMatch,block,log,t:none,t:trim,t:lowercase,msg:'testmsg',logdata:'testdata',severity:'DEBUG',tag:'testtag1',tag:'testtag2'\"", |
313 | 313 | "SecAuditEngine RelevantOnly",
|
314 | 314 | "SecAuditLogParts ABCFHZ",
|
315 | 315 | "SecAuditLog /tmp/test/modsec_audit_multimatch_2.log",
|
|
0 commit comments