Script rules allow you to create scripts to manipulate the data. Uvuyo provides you with a powerful scripting language giving you structural features like if-then-else or loops. For more information about the uvuyo scripting language see Uvuyo Scripting Language.
Example:
version: 1 rules: - name: LogEvent type: Script script: | // write event to log file in json format ... logger.info("id: " + _id); logger.info("node id: " + uv.node.nodeId); logger.info("group id: " + uv.node.groupId); logger.info("raw event: " + Util.json(event)); logger.info("rule: " + uv.rule.name); logger.info("mode: " + mode); logger.info("module: " + uv.module.source); logger.info("endpoint: " + uv.endpoint.name); logger.info("abc\ndef1");