# Create a template for the target log file $template CUSTOM_LOGS,"/var/log/containers/%programname%.log" if $programname startswith 'docker-' then { ?CUSTOM_LOGS stop }