Event Log for Windows XP/2000/2003 (im_mseventlog)
This module collects Windows Event Log data on Windows XP, Windows 2000, and Windows Server 2003 using the legacy Windows Event Log API.
By default, the module collects events from all available log sources listed under the registry key SYSTEM\CurrentControlSet\Services\Eventlog.
To limit collection to specific sources, configure the Sources directive.
For Windows Vista, Windows Server 2008, and later, use the Event Log for Windows input module instead. The legacy API used by this module cannot resolve messages produced by sources in the newer format, and sets the $Message field to the following:
The description for EventID XXXX from source SOURCE cannot be read by im_mseventlog because this does not support the newer WIN2008/Vista EventLog API. Consider using the im_msvistalog module instead.
The module resolves Windows Event Log message strings from DLL and executable files registered by each log source. If the source program has been uninstalled, the module cannot retrieve the string and sets the $Message field to the following:
The description for EventID XXXX from source SOURCE cannot be found.
| To examine the supported platforms, see the list of installation packages. |
Configuration
The im_mseventlog module accepts the following directives in addition to the common module directives.
Optional directives
This boolean directive instructs the module on where to start reading events from the log source when NXLog Agent starts. When When The default is The following matrix shows the outcome of this directive in conjunction with the SavePos directive:
If the NoCache directive is |
|||||||||||||||||||||||||||||||||||||
Set this directive to The default is If the NoCache directive is |
|||||||||||||||||||||||||||||||||||||
Set this directive to a comma-separated list of Windows Event Log filenames, such as If you do not specify this directive, the module reads events from all available Windows Event Log sources defined in the registry. Note that this directive is not equivalent to the $SourceName field found within Windows Event Log records. |
|||||||||||||||||||||||||||||||||||||
Set this directive to The default is |
Fields
The following fields are created by im_mseventlog.
-
$raw_event(type: string) -
The event data in key-value pairs.
-
$AccountName(type: string) -
The username associated with the event.
-
$AccountType(type: string) -
The Windows security principal type. The possible values are:
User,Group,Domain,Alias,Well Known Group,Deleted Account,Invalid,Unknown, andComputer. -
$Category(type: string) -
The event category name resolved from the
$CategoryNumberfield. -
$CategoryNumber(type: integer) -
The category number equivalent to the
Categoryfield of the event record. -
$Domain(type: string) -
The domain name of the user.
-
$EventID(type: integer) -
The event ID specific to the event source.
-
$EventTime(type: datetime) -
Equivalent to the
TimeGeneratedfield of the event record. -
$EventTimeWritten(type: datetime) -
Equivalent to the
TimeWrittenfield of the event record. -
$EventType(type: string) -
The severity of the event. The possible values are:
ERROR,AUDIT_FAILURE,AUDIT_SUCCESS,INFO,WARNING, andUNKNOWN. -
$FileName(type: string) -
The source log file of the event. For example,
SecurityorApplication. -
$Hostname(type: string) -
The host or computer name where the event was generated.
-
$Message(type: string) -
The event message.
-
$RecordNumber(type: integer) -
The event record number.
-
$Severity(type: string) -
The normalized event severity name. See $SeverityValue.
-
$SeverityValue(type: integer) -
The normalized event severity number, mapped as follows:
Event Log Severity Normalized Severity 0/Audit Success
2/INFO
0/Audit Failure
4/ERROR
1/Critical
5/CRITICAL
2/Error
4/ERROR
3/Warning
3/WARNING
4/Information
2/INFO
5/Verbose
1/DEBUG
-
$SourceName(type: string) -
The subsystem or application name that produced the event.