eventlog_search
Search Windows Event Log entries ingested from Netmon agents. Wraps GET /api/eventlog/list (permission: logs); tag-scoped server-side.
Severity is the raw Windows EventRecord.Level: 'logalways'=0 (what Security-channel audit events carry), 'critical'=1, 'error'=2, 'warning'=3, 'information'=4, 'verbose'=5 — pass names or ints. Note 0 is NOT Information.
Window: hours (1-168, default 24) OR start_time+end_time. limit defaults to 50 (max 500). total in the response is the full match count — if it exceeds limit, narrow the window or add severity/source/message filters rather than bumping limit.
Example: eventlog_search({severity: "error", hours: 4})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | Event log channel name (e.g. 'Application', 'System', 'Security'). | |
| hours | No | Lookback window in hours (1-168). Default 24. | |
| limit | No | Max rows returned (1-500). Default 50. | |
| source | No | Event source name. | |
| message | No | Substring match against the event data field. | |
| end_time | No | ISO-8601 UTC; must pair with start_time. | |
| event_id | No | Windows Event ID(s). Single int or array. | |
| severity | No | Severity name(s) or int(s). See tool description for the Windows-specific scheme. | |
| device_id | No | Restrict to a single device id. | |
| start_time | No | ISO-8601 UTC; must pair with end_time. |