On this Page
MetricsHub
MetricsHub Community Connectors 1.0.22
-
Home
- Connector Developer Guide Sources 19
eventLog (Source)
When To Use
Use eventLog to collect Windows Event Log entries directly (system/application/security-style logs).
This source is useful for event-driven monitors and error counters when WMI/Perf counters are not enough.
Syntax
sources:
windowsErrors:
type: eventLog
logName: System
levels:
- error
- warning
eventIds:
- "41"
- "6008"
maxEventsPerPoll: 50
Properties
| Property | Required | Default | Description |
|---|---|---|---|
type |
Yes | None | eventLog. |
logName |
No | Provider/runtime default | Event log channel name (for example System, Application). |
eventIds |
No | [] |
Event IDs to include. |
sources |
No | [] |
Event providers/sources to include. |
levels |
No | [] |
Level filters: names with aliases — error/err, warning/warn, information/info, success, failure/fail (case-insensitive) — or numeric 1..5. |
maxEventsPerPoll |
No | 50 |
Maximum events per cycle. Use -1 for unlimited. |
executeForEachEntryOf |
No | None | Execute with fan-out context from another source. |
computes |
No | [] |
Post-processing computes. |
forceSerialization |
No | false |
Serialize execution via a per-connector, per-host lock (see the Sources overview). Default false. |
Recommended Pattern
- Set
logNameexplicitly. - Filter early with
levels,eventIds, andsources. - Keep
maxEventsPerPollbounded for predictable polling time.
Common Mistakes
- Using unlimited events on noisy logs.
- Filtering only in computes after pulling huge event sets.
- Mixing numeric and textual levels inconsistently across connectors.
Examples
No current community connector uses eventLog.
Note
eventLog is supported by the runtime but currently low-usage in community connectors.
eventLog source
windows events
log monitoring
metricshub
community
connector
hardware
system
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
Searching...
No results.
