Get Log
get_logRead and filter MikroTik router system logs by topic, message prefix, or last N minutes, with pagination and multiple router support.
Instructions
Read and filter the system log from a MikroTik router. Supports filtering by topic, message prefix, and a time window (last N minutes) measured against the router's own clock. Entries with unparseable timestamps are included conservatively.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return. | |
| offset | No | Pagination offset. | |
| prefix | No | Substring to match against the log message | |
| topics | No | Filter entries whose topics field contains any of these strings (e.g. ["firewall", "dhcp"]) | |
| routerId | No | Router ID; omit to use the default router. | |
| sinceMinutes | No | Only return entries from the last N minutes (1–1440), measured against the router's clock |