]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: add documentation for Lua SCFlowHasAlerts
authorMats Klepsland <mats.klepsland@gmail.com>
Fri, 13 Jan 2017 10:50:35 +0000 (11:50 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 24 Jan 2017 09:50:34 +0000 (10:50 +0100)
doc/userguide/output/lua-output.rst

index d1193ae95d98a4b632bf906b10f79246246ab77e..158c0505b06f8cd41dfaf053ef22229f7c768375 100644 (file)
@@ -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
 ~~~~~~~~~~~