Add Tag
The event-add-tag
processor, adds a set of tags to an event message if one of the configured regular expressions in the values, value names, tags or tag names sections matches.
It is possible to overwrite a tag if it's name already exists.
Examples#
processors:
# processor name
sample-processor:
# processor type
event-add-tag:
value-names:
- "."
add:
tag_name: tag_value
{
"name": "sub1",
"timestamp": 1607678293684962443,
"tags": {
"interface_name": "mgmt0",
"source": "172.20.20.5:57400"
},
"values": {
"Carrier_Transitions": 1,
"In_Broadcast_Packets": 448,
"In_Error_Packets": 0,
"In_Fcs_Error_Packets": 0,
"In_Multicast_Packets": 47578,
"In_Octets": 15557349,
"In_Unicast_Packets": 6482,
"Out_Broadcast_Packets": 110,
"Out_Error_Packets": 0,
"Out_Multicast_Packets": 10,
"Out_Octets": 464766
}
}
{
"name": "sub1",
"timestamp": 1607678293684962443,
"tags": {
"interface_name": "mgmt0",
"source": "172.20.20.5:57400",
"tag_name": "tag_value"
},
"values": {
"Carrier_Transitions": 1,
"In_Broadcast_Packets": 448,
"In_Error_Packets": 0,
"In_Fcs_Error_Packets": 0,
"In_Multicast_Packets": 47578,
"In_Octets": 15557349,
"In_Unicast_Packets": 6482,
"Out_Broadcast_Packets": 110,
"Out_Error_Packets": 0,
"Out_Multicast_Packets": 10,
"Out_Octets": 464766
}
}