Fixes date/time len and disabled ex list for flow alerts

Fixed len of date/time column to 5% and disable exclusion list
for the alerts already disabled
This commit is contained in:
Matteo Biscosi 2021-02-18 11:41:08 +01:00
parent 1524deae52
commit eac59ae1d5
5 changed files with 11 additions and 5 deletions

View file

@ -131,6 +131,7 @@ for k,v in ipairs(alerts) do
local column_subdir = ""
local column_script_key = ""
local column_ndpi = ""
local column_filter_disabled = false
if v["l7_proto"] and v["l7_master_proto"] then
local app = create_ndpi_proto_name(v)
@ -211,6 +212,8 @@ for k,v in ipairs(alerts) do
-- Checking if the filter column needs to be skipped
if user_scripts.excludeScriptFilters(alert, record["column_confset_id"], record["column_script_key"], record["column_subdir"]) == false then
record["column_filter"] = user_scripts.getFilterPreset(alert, alert_info)
elseif record["column_subdir"] == "flow" then
record["column_filter_disabled"] = true
end
end