hey,guys!
when i use docs lua script cause an error on my own test-machine.
my suricata build info with lua:
suricata --build-info|grep lua
LUA support: yes, through luajit
libluajit: yes
suricata version:
$ suricata -V
This is Suricata version 7.0.0-beta1 RELEASE
error outputs:
$ suricata -c /etc/suricata/suricata.yaml -T -vvv|grep lua
2/12/2022 – 10:41:15 - - luajit states preallocated: 128
2/12/2022 – 10:41:15 - - enabling script fast.lua
2/12/2022 – 10:41:15 - - enabling script test.lua
2/12/2022 – 10:41:15 - - [ERRCODE: SC_ERR_LUA_ERROR(212)] - failed to setup thread module
2/12/2022 – 10:41:15 - - [ERRCODE: SC_ERR_FATAL(171)] - Error during setup of lua output. Details should be described in previous error messages. Shutting down…
suricata.yaml about lua conf:
- lua:
# enabled: no
enabled: yes #modified at 20220920
scripts-dir: /etc/suricata/
scripts:
# - script1.lua
- fast.lua
- test.lua
fast.lua work well from : https://github.com/OISF/suricata/blob/master/lua/fast.lua
and test.lua from 8.42. Lua Scripting for Detection — Suricata 8.0.0-dev documentation
how can i do to solve this error ?
thanks for your reading for my post!