Computes auditlog during rules load time

This commit is contained in:
Felipe Zimmerle
2020-06-03 20:57:27 -03:00
parent d6e8352873
commit c7813a1973
18 changed files with 197 additions and 92 deletions

View File

@@ -272,11 +272,14 @@
},
"expected":{
"audit_log":"",
"debug_log":"Request was relevant to be saved.",
"debug_log":"Saving this request as part of the audit logs",
"http_code": 302
},
"rules":[
"SecRuleEngine On",
"SecAuditEngine On",
"SecAuditLogStorageDir /tmp/test",
"SecAuditLogType Parallel",
"SecDefaultAction \"phase:2,log,auditlog,status:302,redirect:'http://www.google.com'\"",
"SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"phase:2,id:1,block\"",
"SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none,block\""