Project

General

Profile

Actions

Feature #2450

open

lua scripts access to calling rule informations

Added by Anonymous over 3 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Target version:
Effort:
low
Difficulty:
low
Label:
Beginner

Description

Hi,
I'm looking for a way to to identify the rule triggered in the lua script called.
That should be useful when several rules are calling the same lua script which have a slightly different behaviour depending on the rule.

All the functions that return informations about the rule (SCRuleIds, SCRuleMsg and SCRuleClass) are not working with "match" lua scripts (reserved for "logging" lua scripts ?)

I also tried to use the ScFlowintGet and ScFlowvarGet functions.
The first one is not useful there because flowints are set in last, so after the call to the lua script.
The second one seems to not work. Bug #2094 is still open and I was not able to get a "not nil" result by myself.

Thank you

Actions #1

Updated by Andreas Herz over 3 years ago

  • Assignee set to OISF Dev
  • Target version set to TBD
Actions #2

Updated by Victor Julien about 3 years ago

  • Assignee changed from OISF Dev to Anonymous
  • Effort set to low
  • Difficulty set to low
Actions #3

Updated by Andreas Herz over 2 years ago

  • Assignee set to Community Ticket
Actions #4

Updated by Victor Julien about 2 years ago

  • Label Beginner added
Actions

Also available in: Atom PDF