You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/doc/userguide/lua/libs/config.rst

26 lines
463 B
ReStructuredText

Config Library
##############
The config library provides access to Suricata configuration settings.
To use this library, you must require it::
local config = require("suricata.config")
Functions
*********
``log_path()``
==============
Returns the configured log directory path.
Example::
local config = require("suricata.config")
local log_path, err = config.log_path()
if log_path == nil then
print("failed to get log path " .. err)
end