# Template the destination file $template CUSTOM_LOGS,"/var/log/%programname%.log" if $programname == 'KEA-MLTD' then ?CUSTOM_LOGS if $programname == 'KEA-MLTD' then @@(o)RSYSLOG_SERVER:RSYSLOG_PORT if $programname == 'KEA-MLTD' then stop