-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: 2290
- Loading branch information
Showing
6 changed files
with
143 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
Lua usage in Suricata | ||
===================== | ||
|
||
Lua scripting can be used in two components of Suricata. The first is in | ||
output and the second one in rules in the detection engine. | ||
Lua scripting can be used in two components of Suricata: | ||
|
||
* Output | ||
* Detection: ``lua`` keyword and ``luaxform`` transform | ||
|
||
Both features are using a list of functions to access the data extracted by | ||
Suricata. You can get the list of functions in the :ref:`lua-functions` page. | ||
|
||
.. 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. | ||
.. 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. The ``luaxform`` doesn't use the ``needs`` key. | ||
|
||
Lua output | ||
---------- | ||
|
||
Lua can be used to write arbitrary output. See :ref:`lua-output` for more information. | ||
Lua scripts can be used to write arbitrary output. See :ref:`lua-output` for more information. | ||
|
||
Lua detection | ||
------------- | ||
|
||
Lua script can be used as a filter condition in signatures. See :ref:`lua-detection` for more information. | ||
Lua scripts can be used as a filter condition in signatures. See :ref:`lua-detection` for more information. | ||
|
||
Lua transform | ||
------------- | ||
|
||
The ``luaxform`` transform can be used in signatures. See :ref:`lua-transform` for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters