Defining match tokens rules
A match tokens rule copies the value of another field to the matchTokens field so that it can be used to match events (alerts) to resources.
About this task
A match tokens rule populates the matchTokens of resources matched by the rule. See the following simple match token rule for an example.
Procedure
Details
On the Details section of the New match tokens rule (or Edit match tokens rule) page, you define the name, status and tokens for the rule.
Conditions
Example
Match token rules:
A match token rule allows the value of another field to be copied to the matchTokens field so that it can be used to match events to resources. It populates the matchTokens of resources matched by the rule.
Simple example of a matchTokensRule:
- name: matchRule
ruleType: matchTokensRule
ruleStatus: enabled
tokens: [ name ]
entityTypes: null
observers: null
providers: null
- Resource with variable substitutions and exclude list
-
{ "name": "sysNameMatching", "tokens": [ "sysName", "${name}/${customField}"], "ruleStatus": "enabled", "entityTypes": [ "host", "server" ], "observers": [ "ITNM", "TADDM" ], "providers": [ "*" ], "customField": "string", "excludeTokens": [ "^asm-default.*"] }