View Categories

Syslog server: send router logs to MikroWizard

Free MikroTik only

What it is #

MikroWizard receives syslog from your devices, stores it and turns known messages into events.

Example uses

  • Keep router logs centrally, even after a router reboots.
  • Get an event when a router logs a login failure.

MikroWizard runs a syslog server on UDP 5014. Router logs feed the Authentication and Accounting logs, events such as unexpected reboots, live Sync & Clone, and your custom regex rules.

Before you start #

  • The router must reach the MikroWizard server on UDP 5014. See Network and firewall requirements.
  • MikroWizard matches each log line to a device by the sender’s IP address. The router must send from the same address MikroWizard has for the device.

Configure routers automatically #

Turn on Force Syslog in Settings › System Configuration › Security & Enforcement. During polling, MikroWizard sets up each managed MikroTik router:

  • a logging action named mikrowizard<device ID>, target remote, to the MikroWizard address (the device’s peer IP or the Default IP Address), port 5014,
  • three logging rules with the topics critical, error and info, using that action and the prefix mikrowizard<device ID>.

If the address or port is wrong, or a rule is missing, MikroWizard fixes it on the next check. Other logging actions and rules on the router are not changed; old actions and rules whose name or prefix contains mikrowizard are replaced.

Configure by hand #

Without Force Syslog, create the same settings on the router, with the device’s ID in MikroWizard (the number after id= in the browser address bar on the device page) and your MikroWizard address:

/system logging action add name=mikrowizard12 target=remote remote=192.0.2.10 remote-port=5014
/system logging add topics=critical action=mikrowizard12 prefix=mikrowizard12
/system logging add topics=error action=mikrowizard12 prefix=mikrowizard12
/system logging add topics=info action=mikrowizard12 prefix=mikrowizard12

Log lines without the mikrowizard<ID> prefix are ignored, so a generic syslog setup is not enough.

Common problems #

ProblemCause and fix
Nothing arrives from a routerUDP 5014 is blocked, or the router sends from another address than the one MikroWizard has (for example behind NAT).
Logs stop after a device was deleted and added againThe device has a new ID. With Force Syslog on, MikroWizard sees the wrong prefix and sets the router up again; without it, change the prefix by hand.
A non-MikroTik device’s logs don’t appearThe syslog server only processes MikroTik log lines with the MikroWizard prefix.