Manage Log Rule
manage_log_ruleAdd, remove, enable, or disable RouterOS logging rules with idempotent operations keyed by topics and log action. Supports dry-run to preview changes.
Instructions
Add, remove, enable, or disable a RouterOS logging rule. Idempotent by topics+logAction (add → already_exists on match; remove → not_found handled gracefully; enable/disable throw NOT_FOUND when absent). Supports dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| action | Yes | Action to perform | |
| topics | Yes | Log topics (e.g. firewall, system, info) — idempotency key | |
| logAction | Yes | Log action target name (RouterOS action field) — idempotency key | |
| prefix | No | Optional prefix to prepend to log messages | |
| dryRun | No | Preview changes without applying. |