Get Log
get_logRetrieve and filter system log entries from a MikroTik router using topic, prefix, and time window parameters.
Instructions
Read and filter the system log from a MikroTik router. Supports filtering by topic, message prefix, and a time window (last N minutes). Entries with unparseable timestamps are included conservatively.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | Yes | Target router identifier from the router registry | |
| limit | No | Maximum entries to return (1–500) | |
| offset | No | Pagination offset | |
| topics | No | Filter entries whose topics field contains any of these strings (e.g. ["firewall", "dhcp"]) | |
| prefix | No | Substring to match against the log message | |
| sinceMinutes | No | Only return entries from the last N minutes (1–1440) |