Implements merge of multiple identical alerts

Implements #3430
This commit is contained in:
Simone Mainardi 2020-02-25 18:14:25 +01:00
parent 8abdb926cd
commit 4ed8cfecc3
7 changed files with 128 additions and 39 deletions

View file

@ -672,6 +672,9 @@ end
function alerts_api.broadcastDomainTooLargeType(src_mac, dst_mac, vlan, spa, tpa)
return({
alert_type = alert_consts.alert_types.alert_broadcast_domain_too_large,
-- Subtype is the concatenation of src and dst macs and ips and the VLAN. This
-- allows the elerts engine to properly aggregate alerts when they have the same type and subtype
alert_subtype = string.format("%u_%s_%s_%s_%s", vlan, src_mac, spa, dst_mac, tpa),
alert_severity = alert_consts.alert_severities.warning,
alert_type_params = {
src_mac = src_mac, dst_mac = dst_mac,