Earlier you could use the backtick env variable format.

This one is substituted at config parsing.

On Sep 18, 2014 5:26 PM, "Fabien Wernli" <wernli@in2p3.fr> wrote:
Hi Jim,

As of version 3.5 you can use the `env` template function:

template("<$PRI> $DATE $HOST $MSG $(env <environment-variable>) \n") template_escape(no));

Cheers

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq