diff --git a/doc/userguide/output/lua-output.rst b/doc/userguide/output/lua-output.rst index d1193ae95d..158c0505b0 100644 --- a/doc/userguide/output/lua-output.rst +++ b/doc/userguide/output/lua-output.rst @@ -178,6 +178,22 @@ Example: end end +SCFlowHasAlerts +~~~~~~~~~~~~~~~ + +Returns true if flow has alerts. + +Example: + +:: + + function log(args) + has_alerts = SCFlowHasAlerts() + if has_alerts then + -- do something + end + end + SCFlowStats ~~~~~~~~~~~