]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
doc: add documentation for Lua SCFlowTimestamps
authorMats Klepsland <mats.klepsland@gmail.com>
Fri, 10 Mar 2017 06:23:30 +0000 (07:23 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 28 Mar 2017 12:42:52 +0000 (14:42 +0200)
doc/userguide/output/lua-output.rst

index 21e278a5e2d1548c5a0460d770b27eb626c3fc8a..adef654a05437587777b9f9e6762e649f119d3cf 100644 (file)
@@ -147,6 +147,17 @@ flow
       return needs
   end
 
+SCFlowTimestamps
+~~~~~~~~~~~~~~~~
+
+Get timestamps (seconds and microseconds) of the first and the last packet from
+the flow.
+
+::
+
+  startts, lastts = SCFlowTimestamps()
+  startts_s, lastts_s, startts_us, lastts_us = SCFlowTimestamps()
+
 SCFlowTimeString
 ~~~~~~~~~~~~~~~~