get_logs
Retrieve MikroTik device logs with optional topic, time, and message filters to pinpoint relevant events and troubleshoot issues.
Instructions
Gets logs from the MikroTik device with optional topic, time, and message filters.
Notes: topics: comma-separated, entry matches any of them e.g. "system,dhcp" time_filter: RouterOS duration e.g. "30s", "5m", "1h", "2d" message_filter: RouterOS regex matched against the message (case-sensitive) limit: keep only the newest N entries
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| device | No | ||
| topics | No | ||
| print_as | No | plain | |
| time_filter | No | ||
| prefix_filter | No | ||
| message_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |