20 Sep
2014
20 Sep
'14
3:56 p.m.
Hi Famien, Thanks - just need to get the Ops team to push out 3.5 and I'll give it a shot! Jim. On Sep 19, 2014, at 2:46 AM, syslog-ng-request@lists.balabit.hu wrote:
Date: Thu, 18 Sep 2014 17:26:33 +0200 From: Fabien Wernli <wernli@in2p3.fr> Subject: Re: [syslog-ng] Injecting environment variables? To: "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu> Message-ID: <20140918152633.GC6867@ccfawe.in2p3.fr> Content-Type: text/plain; charset=us-ascii
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