<div dir="ltr"><div><br></div><div>According to the docs, one should be able to use all the functions in eater lua rules or lua output. But I cant seem to get ScFlowintGet to work. Just errors here:</div><div><br></div><div>[110340] 17/4/2020 -- 08:21:24 - (output-lua.c:289) <Info> (LuaPacketLogger) -- failed to run script: /etc/suricata/lua-output//test.lua:19: attempt to call global 'ScFlowintGet' (a nil value)<br></div><div><br></div><div>Script is as follows:</div><div><br></div><div>-- START</div><div>function init(args)<br>    local needs = {}<br>    needs["type"] = "flow"<br>    needs["type"] = "packet"<br>    needs["flowint"] = {"test"}<br>    return needs<br>end<br><br>function setup (args)<br>  SCLogInfo("TEST setup")<br>end<br><br>function deinit (args)<br>  SCLogInfo("TEST deinit")<br>end<br><br>function log(args)<br>    --ipver, srcip, dstip, proto, sp, dp = SCFlowTuple()<br>    a = ScFlowintGet(0) -- Fails here!<br>    if a then<br>        ScFlowintSet(0, a + 1)<br>    else<br>        ScFlowintSet(0, 1)<br>    end<br>    SCLogInfo("TEST log")<br>end</div><div>-- END</div><div><br></div><div>Is this supposed to work?</div><div><br></div><div><br></div><div>E</div></div>