/usr/local/etc/syslog-ng.conf.d/myconfig.conf:template LogglyFormat { template("<${PRI}>1 ${ISODATE} ${HOST} ${PROGRAM} ${PID} ${MSGID} [REDACTED tag=\"syslog-ng\" ] $MSG\n"); template_escape(no);};filter f_loggly_level { level(warn,err,crit,alert,emerg)};destination d_loggly { tcp("logs-01.loggly.com" port(6514) tls( peer-verify(required-untrusted)) template(LogglyFormat) );};log { # source(s_loggly); source(s_all); filter(f_loggly_level); destination(d_loggly);};