How to Identify MID Server for SNMP Events and CaptureMID Name in em_event Table

VUTHUYDANN
Tera Contributor

We have implemented an AWS Load Balancer in front of two MID Servers. When the load balancer receives SNMP traps, it forwards each trap to one of the MID Servers, which then processes the trap and inserts the corresponding event into the em_event table in ServiceNow.

In this setup, how can we determine which MID Server processed a given event? Also, is there any way to capture and add the MID Server name to the event payload before the record is inserted into em_event?