Get Log
get_logRead and filter MikroTik router system logs by topic, message prefix, or time window to isolate events and troubleshoot network issues.
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 | No | Router ID; omit to use the default router. | |
| limit | No | Max results to return. | |
| 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) |