Previous Topic: EVENTLOG Statement—Specify the Name of a Windows Event LogNext Topic: EVENTTIME Statement—Specify the Date and Time of a Windows Event Log


EVENTSOURCE Statement—Specify a Windows Event Source

The EVENTSOURCE statement specifies the Windows event source.

Supported Job Type

This statement is optional for the Windows Event Log Monitoring job type.

Syntax

This statement has the following format:

EVENTSOURCE source_name
source_name

Specifies the event source as displayed in the Windows Event Viewer.

Limits: Up to 256 characters; case-sensitive

Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.

Example: Monitor a Windows Event Source

This example monitors a Windows event source named Service Control Manager. Since this text contains spaces, single quotes are used.

AGENT WINAGENT
EVENTLOG System
EVENTTYPE ERROR
EVENTSOURCE 'Service Control Manager'