This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

GetSyslogRuleMatchCount

GetSyslogRuleMatchCount(name, object): int

Get syslog rule match count for all objects or for exact object.

Table 1. Parameters

name

String

Rule name

object

NetObj or Integer

Object of class NetObj or object id. Optional parameter

Return

Syslog rule match count, or -1 if syslog daemon is not initialized or rule with given name does not exist

println(GetSyslogRuleMatchCount("RuleName", $object)); // Will print rule match count for rule with name "RuleName"