Added support to remove nodes in case of special values in flow_data

This commit is contained in:
Matteo Biscosi 2025-10-07 11:58:52 +02:00
parent 8dfc314408
commit b0dda316c1
2 changed files with 7 additions and 0 deletions

View file

@ -82,6 +82,11 @@ local function formatEmptyStats(columns, flow, rename_field_list,
element[key] = nil
end
end
-- In case the value needs to be removed,
-- e.g. if the peer ASN are 0, they needs to be skipped.
if (column_info.hide_if_value) and (flow_element == column_info.hide_if_value) then
element[key] = nil
end
if trace_stats then
trace_string = string.format("%s [%s: %s]", trace_string,
key,