Event Log Trigger

Description

Triggers task execution when the monitored event is added to the Windows Event Log.

Practical Usage

This trigger can be used to make AutoMate react to system or application generated errors that are sent to the Windows Event Log. For example, this trigger can automatically launch a task that emails the system administrator if Windows generates a log entry stating that the DNS server could not be contacted. It can also be used to run a task when a subsequent AutoMate task logs an event to the Windows Event Log with the use of the Log Event action.

This trigger can also be used in conjunction with the Log Event action which logs a user defined event to the Windows Event Log.

Parameters

General Properties

Property

Description

Log Type

The type of event log to monitor. The default option is Application, however, other log types can be selected by expanding the list box or a user can simply enter the log type manually.

Event Source

The source of the event in which to monitor. The default option is All Sources, however, expanding the list box will show all available sources on the system to select from or a user can enter the event source manually.

Event Type

The type of event to monitor. The available options are:

  • All Types (default)

  • Information

  • Warning

  • Error

  • Success Audit

  • Failure Audit

Event Category

The event category to monitor. The only available option is All categories.

Description

Allows a description for the event to optionally be entered. To monitor for partial descriptions, use wildcard characters * or ?.

Behavior Properties

Property

Description

Trigger on startup if condition is true

If enabled, the system will act upon conditions that already exist upon startup of the current trigger. For example, if the Notepad window is already open on the desktop, a newly created Window trigger set to monitor for the existence of a Notepad window will immediately launch the task as a result. If disabled, the trigger will ignore the open Notepad window upon startup. This parameter is disabled by default.

Trigger after the condition has been met 'X' times.

If enabled, specifies how many times the trigger condition must be met before the task is started. For example, if a Window trigger is set to monitor for the appearance of a Notepad window and this parameter is set to 3, the task will not launch until the third instance of Notepad appears on the desktop.

 

AMTrigger

When this trigger is activated, it automatically passes the "AMTrigger" object to the task. AMTrigger can be used within a task to determine whether or not the task was started by a trigger, which trigger started the task, when the trigger was activated and other trigger related properties. For more details, see Using AMTrigger. The AMTrigger fields described in the table below are specific only to the Event trigger.

Name

Type

Return Value

AMTrigger.EventType

Text

 (options)

Specifies the type of event that activated the trigger. The available event types are:

  • Information

  • Warning

  • Error

  • Success Audit

  • Failure Audit

AMTrigger.EventID

Text

The Event ID of the logged event that activated the trigger.

AMTrigger.EventSource

Text

The source of the logged event that activated the trigger.

AMTrigger.EventCategory

Text

The category of the event that activated the trigger.

AMTrigger.EventDescription

Text

A description of the event that activated the trigger.

AMTrigger.EventComputer

Text

The computer name where the event occurred that activated the trigger.

AMTrigger.EventTime

Text

Returns the date/time that the monitored event was logged in the Windows Event Log.

See Also

↑ Top of Page