Commit graph

8 commits

Author SHA1 Message Date
Jason Ish
ce7cdd6f9a lua: create suricata.config lua lib
Currently only provides "log_path" as a replacement for SCLogPath.
2025-06-04 09:39:51 +02:00
Jason Ish
13de319b01 lua: fix fast.lua example
This one is a little different as it logs to a file, and is the same
fast.lua used in the new Suricata-Verify test.

Ticket: #7656
2025-04-22 22:43:05 +02:00
Jason Ish
f8620d0ed2 docs: update url to docs.suricata.io 2023-05-30 12:21:05 +02:00
Victor Julien
2c0b42b358 lua: spelling 2023-05-06 14:50:43 +02:00
Richard Sailer
5de77e3102 lua output: Update example script to match style of user doc examples 2018-03-30 09:41:38 +02:00
Victor Julien
3343060d85 output-lua: add SCPacketTimeString
Add SCPacketTimeString to get the packets time string in the format:
    11/24/2009-18:57:25.179869

Example use:

    function log(args)
        ts = SCPacketTimeString()
2014-08-15 13:58:26 +02:00
Victor Julien
b3dfd3cd8e output-lua: rule info callback
SCRuleIds(): returns sid, rev, gid:

    function log(args)
        sid, rev, gid = SCRuleIds()

SCRuleMsg(): returns msg

    function log(args)
        msg = SCRuleMsg()

SCRuleClass(): returns class msg and prio:

    function log(args)
        class, prio = SCRuleClass()
        if class == nil then
            class = "unknown"
        end
2014-08-15 13:58:26 +02:00
Victor Julien
684afc7f4e output-lua: add example packet log script
Example packet log script that outputs to stdout in the alert-
fast log format.
2014-08-15 13:58:25 +02:00