Previous Topic: EVENT Statement—Specify the SAP Event to Monitor or TriggerNext Topic: EVENTCOMPUTER Statement—Specify a Local Computer for Windows Event Log


EVENTCATEGORY Statement—Specify a Windows Event Category

The EVENTCATEGORY statement specifies the event category as displayed in the Windows Event Viewer.

Supported Job Type

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

Syntax

This statement has the following format:

EVENTCATEGORY event_category
event_category

Specifies the event category 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 for a Windows Application Event Log

This example monitors for a Windows application event log. When the job finds an application log in the Disk category and has an event ID equal to 14, the job completes.

AGENT MONAGT
EVENTLOG Application
EVENTCATEGORY Disk
EVENTID EQ 14