diff --git a/userspace/digwatch/lua/rule_loader.lua b/userspace/digwatch/lua/rule_loader.lua index ec4f3583..a7963d9f 100644 --- a/userspace/digwatch/lua/rule_loader.lua +++ b/userspace/digwatch/lua/rule_loader.lua @@ -31,6 +31,9 @@ local function mark_relational_nodes(ast, index) end end +--[[ + Take a filter AST and set it up in the libsinsp runtime, using the filter API. +--]] local function install_filter(node) local t = node.type @@ -60,17 +63,6 @@ local function install_filter(node) end end - --- filter.rel_expr("proc.name", "=", "cat") --- filter.bool_op("and") --- filter.nest() --- filter.nest() --- filter.rel_expr("fd.num", "=", "1") --- filter.bool_op("or") --- filter.rel_expr("fd.num", "=", "2") --- filter.unnest() --- filter.unnest() - local state --[[