18.3.3. Config Library

The config library provides access to Suricata configuration settings.

To use this library, you must require it:

local config = require("suricata.config")

18.3.3.1. Functions

18.3.3.1.1. 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