mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implements skeleton to drilldown historical flows from alerts
Addresses #5326
This commit is contained in:
parent
0043e9c0d6
commit
b6913c946d
4 changed files with 74 additions and 9 deletions
|
|
@ -63,4 +63,21 @@ end
|
|||
|
||||
-- #######################################################
|
||||
|
||||
function host_alert_dns_server_contacts.filter_to_past_flows(ifid, alert, alert_type_params)
|
||||
local res = {}
|
||||
local host_key = hostinfo2hostkey({ip = alert["ip"], vlan = alert["vlan_id"]})
|
||||
|
||||
if alert["is_client"] == true or alert["is_client"] == "1" then
|
||||
res["client_ip"] = host_key
|
||||
elseif alert["is_server"] == true or alert["is_server"] == "1" then
|
||||
res["server_ip"] = host_key
|
||||
end
|
||||
|
||||
res["l7_proto"] = "DNS"
|
||||
|
||||
return res
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
||||
return host_alert_dns_server_contacts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue