Previous Topic: EVENTCATEGORY Statement—Specify a Windows Event CategoryNext Topic: EVENTDESCRIPTION Statement—Specify a Windows Event Description


EVENTCOMPUTER Statement—Specify a Local Computer for Windows Event Log

The EVENTCOMPUTER statement specifies the name of the local computer that the Windows event log applies to.

Supported Job Type

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

Syntax

This statement has the following format:

EVENTCOMPUTER computer_name
computer_name

Specifies the local computer name where the event log is monitored.

Limits: Up to 80 characters; case-sensitive

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

Example: Monitor a Windows Event Log on a Specific Computer

This example monitors the D9GBJG11 computer for an event source of Security:

AGENT WINAGENT
EVENTLOG Security
EVENTTYPE AUDITS
EVENTSOURCE Security
EVENTCOMPUTER D9GBJG11
EVENTCATEGORY 'System Event'
EVENTID GT 0