syslog_search
Search syslog messages from network devices. Wraps GET /api/syslog/list (permission: logs); tag-scoped server-side.
Filters (all optional): device_id, severity (name or int 0-7), facility (int 0-23), source (exact host/IP), message (substring).
Window: hours (1-168, default 24) OR start_time+end_time (ISO-8601 UTC). limit defaults to 50 (max 500). The response's total is the full match count — if it exceeds limit, narrow the window or add severity/message filters rather than bumping limit unboundedly.
Example: syslog_search({severity: "error", hours: 2, limit: 20})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Lookback window in hours (1-168). Default 24. | |
| limit | No | Max rows returned (1-500). Default 50. | |
| source | No | Source host/IP string match (exact). | |
| message | No | Substring match against message text (case-insensitive). | |
| end_time | No | ISO-8601 UTC. Must be paired with start_time. | |
| facility | No | Syslog facility int(s) 0-23. Accepts single or array. | |
| severity | No | One severity or an array. Strings (e.g. 'error') or ints 0-7. | |
| device_id | No | Restrict to a single device id. | |
| start_time | No | ISO-8601 UTC (e.g. 2026-04-23T10:00:00Z). Must be paired with end_time. |