]> git.ipfire.org Git - people/ms/suricata.git/blame - doc/userguide/lua/lua-usage.rst
userguide: rename pg Lua Scripting->Lua Detection
[people/ms/suricata.git] / doc / userguide / lua / lua-usage.rst
CommitLineData
0c4bf2d3
EL
1Lua usage in Suricata
2=====================
3
4a90dced 4Lua scripting can be used in two components of Suricata. The first is in
b116a56a 5output and the second one in rules in the detection engine.
0c4bf2d3 6
e7f1736f 7Both features are using a list of functions to access the data extracted by
4a90dced 8Suricata. You can get the list of functions in the :ref:`lua-functions` page.
0c4bf2d3 9
e7f1736f
JF
10.. note:: Currently, there is a difference in the ``needs`` key in the ``init`` function, depending on what is the usage: ``output`` or ``detection``. The list of available functions may also differ.
11
0c4bf2d3
EL
12Lua output
13----------
14
15Lua can be used to write arbitrary output. See :ref:`lua-output` for more information.
16
4a90dced 17Lua detection
0c4bf2d3
EL
18-------------
19
4256c1cc 20Lua script can be used as a filter condition in signatures. See :ref:`lua-detection` for more information.