Event Log Trigger – Include Event Data in e-mail

Send Us a Sign! (Contact Us!)

In this article we will cover how to edit the existing task to send Event Details and in particular Event Data in the body of an e-mail.

Steps

Create a Job which will trigger on an Event during specific condition:

Event Log Trigger - Include Event Data in e-mail

Right-Click on the selected Job that contains the Event-based trigger and Export it, save it as test.xml:

Event Log Trigger - Include Event Data in e-mail

Open the test.xml file in Notepad to Edit, and search and find Event Trigger:

Event Log Trigger - Include Event Data in e-mail

Include ValueQueries as shown below and save the file. In below example, we have added (Event/EventData/Data) as (EventData) which will be used as $EventData while sending an e-mail.

Event Log Trigger - Include Event Data in e-mail

NOTE: you can include any values in the event (for example: Event/System/Computer will include your Server Name). You can open the Event -> Go to Details tab -> Select XML view to see more details:

Event Log Trigger - Include Event Data in e-mail

Delete the existing task and import the new task using modified XML file:

Event Log Trigger - Include Event Data in e-mail

Edit Actions -> Send an e-mail option, include $(EventData) as appropriate:

Event Log Trigger - Include Event Data in e-mail