Show 

Home > Hyper Historian > MergeWorX > Creating Triggers > NT Event Triggers

 

NT Event Triggers

To Add an NT Event Trigger:

  1. Open the Workbench and expand the Actions node and then the Triggers node. Right-click on the NT Event Triggers node then click on Add NT Event Trigger, as shown below.

Add NT Event Trigger from Project Explorer in the Workbench

 

-OR-

 

Select the NT Event Triggers node then click on the Add NT Event Trigger button, shown below, in the Edit section of the Home ribbon in the Workbench.

 

Add NT Event Trigger Button

  1. This opens the New NT Event Trigger Properties, shown below.

New NT Event Trigger Properties

 

Enter a name in the NT Event Trigger Name text entry field.

General Tab

General Settings

Trigger Settings

NOTE: To be able to view the list of the subcategories for the Security Category of the EventLog, you need to launch Workbench as an Administrator. [For more specific info, see (https://msdn.microsoft.com/en-us/library/system.diagnostics.eventlogpermission(v=vs.110).aspx].

 

If the event source that is specified by the EventLog.Source property for the event log does not exist, a new event source is created. To create an event source in more recent versions of Windows or Windows Server, you must have administrative privileges.

 

The reason for this requirement is that all event logs, including security, must be searched to determine whether the event source is unique. Users do not have permission to access the security log. Therefore, a SecurityException is thrown.

 

User Account Control (UAC) determines the privileges of a user. If you are a member of the Built-in Administrators group, you are assigned two run-time access tokens: a standard user access token and an administrator access token. By default, you are in the standard user role. To execute the code that accesses the security log, you must first elevate your privileges from standard user to administrator. You can do this when you start an application by right-clicking the application icon and indicating that you want to run as an administrator.

Related Values Tab

Related Values Tab

 

You can enter up to 20 values.

 

Click on the Click to add Multiple Tags link to open the data browser to navigate to your selected tags.

 

Or, click on +Click here to add new item to add individual tags.

  1. Once you have completed your settings, click on Apply to save them and Close to return to the Workbench. Your configured NT Event Trigger will now appear in the Project Explorer.

See Also:

Triggers