
On Linux Server, lets /etc/rsyslog.conf file like this
### for mikrotik remote logging
$AllowedSender UDP, 183.91.x1.y1/255.255.255.255
$AllowedSender TCP, 183.91.x1.y1/255.255.255.255
$UDPSenverAddress 183.91.x1.y1
$UDPSenverRun 514
:fromhost-ip, isequal, "183.91.x1.y1" /var/log/mikrotik.log
& ~
On MikroTik SRP
1. Set action from /system logging menu
Name: lognhc
Type: remote
Remote Address: 183.91.x2.y2 (nhc server)
Remote Port: 514
BSD Syslog: enable
Syslog Facility: 3 (daemon)
2. Set Log Rules from /system logging menu
Topics: system
Prefix:
Action: lognhc
Other topics : critical, dhcp, error, event, hotspot, info, system, warning
Already configured: KPB, SRP.
Check the result:

No comments:
Post a Comment