Pointing Mikrotik RouterOS hardware logging to a remote Syslog server

This is a really quick article in passing really. I needed to configure my RouterBoard to point to my Syslog server for some testing purposes so I thought I’d document the process for others who might be trying to achieve the same thing.

To set up logging on RouterOS, run the following on your device
Note: I am using RouterOS v.5. I don’t have any hardware running other versions to verify if this also works on older versions of RouterOS

In the below example, the IP address 10.0.1.80 is my remote syslog server.

[admin@routeros] > /system logging action set remote bsd-syslog=yes name=remote remote=10.0.1.80 remote-port=514 src-address=0.0.0.0 syslog-facility=local0 syslog-severity=auto target=remote
[admin@routeros] > /system logging add action=remote disabled=no prefix="" topics=!async

I hope this has proven useful.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>