mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Add SecAuditLog2 directive (trac #102)
This commit is contained in:
@@ -886,5 +886,16 @@ void sec_audit_logger(modsec_rec *msr) {
|
||||
if (text == NULL) return;
|
||||
|
||||
nbytes = strlen(text);
|
||||
if (msr->txcfg->debuglog_level >= 9) {
|
||||
msr_log(msr, 9, "Audit Log: Writing %d bytes to primary concurrent index", nbytes);
|
||||
}
|
||||
apr_file_write_full(msr->txcfg->auditlog_fd, text, nbytes, &nbytes_written);
|
||||
|
||||
/* Write to the secondary audit log if we have one */
|
||||
if (msr->txcfg->auditlog2_fd != NULL) {
|
||||
if (msr->txcfg->debuglog_level >= 9) {
|
||||
msr_log(msr, 9, "Audit Log: Writing %d bytes to secondary concurrent index", nbytes);
|
||||
}
|
||||
apr_file_write_full(msr->txcfg->auditlog2_fd, text, nbytes, &nbytes_written);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user