Transforming Events with Event Mappings

To modify events as they arrive, create an event map through the user
interface:

Create an event class.

Go to the event console and create an event mapping in this class from the existing
event.

Edit the map.

In the Transform area, update the event with detail data. The entry field allows you to
insert Python scripts. The event is provided as "evt" and the device as "dev." In this
case, extract the sysLocation event detail and make it the summary with:

evt.summary = evt.sysLocation

Save the event mapping.

If you move the event to the event archive and resend the trap, the
summary for the trap should now read the device name in the location you assigned.

If you encounter problems with the transform, check the zentrap.log
file for errors that occurred.