There is an option to define custom event tags in Zabbix. Event tags are defined on the trigger level. After the tags are defined, corresponding new events get marked with tag data.
Having custom event tags allows for more flexibility. Most importantly, events can be correlated based on event tags. In other uses, actions can be defined based on event tags.
Event tags are realized as a pair of the tag name and value. You can use only the name or pair it with a value:
MySQL, Service:MySQL, Services, Services:Customer, Applications, Application:Java, Priority:High
Some use cases for this functionality are as follows:
Event tags are defined in trigger configuration. Event tags can be defined for triggers, template triggers and trigger prototypes.
{ITEM.VALUE}, {ITEM.LASTVALUE}, {HOST.HOST}, {HOST.NAME}, {HOST.CONN}, {HOST.DNS}, {HOST.IP}, {HOST.PORT} and {HOST.ID} macros can be used to populate the tag name or tag value.
User macros and user macro context is supported for the tag name/value. User macro context may include low-level discovery macros.
Low-level discovery macros can be used for the tag name/value in trigger prototypes.
{EVENT.TAGS} and {EVENT.RECOVERY.TAGS} macros can be used in trigger-based notifications and they will resolve to a comma separated list of event tags or recovery event tags.
Substring extraction is supported to populate the tag name or tag value, using the new macro function - applying a regular expression to the value obtained by the {ITEM.VALUE} macro.
{{ITEM.VALUE}.regsub(pattern, output)}
{{ITEM.VALUE}.iregsub(pattern, output)}
Tag name and value will be cut to 255 characters if their length exceeds 255 characters after macro resolution.
Event tags, if defined, can be seen with new events in:
Only the first three tag entries are displayed. If there are more than three tag entries, it is indicated by three dots. If you roll your mouse over these three dots, all tag entries are displayed in a pop-up window.
It is expected that the use of event tags may have the following effects: