Code in this video_Configure MikroTik Remote Logging with Rsyslog on Linux

✳️Replace the highlighted information with your own


$template NetworkLogPath, "/var/log/network/%HOSTNAME%_%FROMHOST-IP%/%$YEAR%-%$MONTH%-%$DAY%.log"

$template NetworkLogFormat,"%timereported:::date-rfc3339% from=%FROMHOST-IP% host=%HOSTNAME% severity=%syslogseverity-text% facility=%syslogfacility-text% tag=%syslogtag% msg=%msg%\n"

if $fromhost-ip != '127.0.0.1' then ?NetworkLogPath;NetworkLogFormat
& stop

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *