Manage Log Action
manage_log_actionAdd or remove RouterOS logging action targets such as memory, disk, remote, echo, or email. Idempotent by name with dry-run support for previewing changes.
Instructions
Add or remove a RouterOS logging action target. Idempotent by name. add throws VALIDATION if type is missing; returns already_exists if name found. remove returns not_found gracefully. Supports dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| action | Yes | Action to perform | |
| name | Yes | Log action name — idempotency key | |
| type | No | Action type: memory, disk, remote, echo, email (required on add) | |
| remote | No | Remote syslog server address (for type=remote) | |
| remotePort | No | Remote syslog server port (for type=remote) | |
| diskFileName | No | Disk log file name without extension (for type=disk) | |
| dryRun | No | Preview changes without applying. |