The additional guidelines for writing RASLOG event-handler scripts are as follows:
- The script must include
import
json
.
- If an event-handler detects
the log messages specified in the triggers and the trigger-function
conditions are met, the script is executed. As part of this execution, the
script is passed a
--raslog-triggers
argument with JSON-formatted dictionary
containing the relevant message identifiers (MSGID) as keys and the message
text as values.
- If the trigger-function is
OR, only a single MSGID and message text are present.
- If the trigger function is
AND, all relevant MSGIDs and messages are passed inside the json data
structure.