GetSyslogRuleMatchCount

GetSyslogRuleMatchCount(name, object): int

Get syslog rule match count or 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 not initialized

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