Computes auditlog during rules load time

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

View File

@@ -176,6 +176,14 @@ int RuleMessage::getAccuracy() const {
}
bool RuleMessage::toBeAuditLog() const {
if (m_rule) {
return m_rule->isItToBeAuditLogged();
}
return false;
}
std::string RuleMessage::getClientIpAddress() const {
if (m_transaction) {
return *m_transaction->m_clientIpAddress.get();