Rsyslog - prevent local host logging twice
module(load="imudp") input(type="imudp" port="514" ruleset="remote") ruleset(name="remote"){ $template RemoteLogs,"/var/log/devices/%HOSTNAME%.log" *.* ?RemoteLogs }
$template DUMP_ALL_VAR,"/rsyslog/dump_hostname=%HOSTNAME%,fromhost=%FROMHOST%,fromhost-ip=%FROMHOST-IP%,syslogtag=%SYSLOGTAG%,programname=%PROGRAMNAME%,app-name=%APP-NAME%" *.* ?DUMP_ALL_VAR
$template TPLinkSwitch,"/rsyslog/%FROMHOST%/syslog.log" if ($msg contains "T2600G-28TS") then { ?TPLinkSwitch stop }