[syslog-ng] Injecting environment variables?

jetjnkr at gmail.com jetjnkr at gmail.com
Sun Sep 21 15:14:37 CEST 2014


Balazs,

Thanks,  do you have any examples in using the backtick it in a message template?  Do you have to assign it to a config variable in a "define" first?

How much 'earlier' versions of syslog-ng  will this work (e.g. before 3.2 ?)

Jim.


> 
> 
> From: Balazs Scheidler <bazsi77 at gmail.com>
> Subject: Re: [syslog-ng] Injecting environment variables?
> To: "Syslog-ng users' and developers' mailing list"
> 	<syslog-ng at lists.balabit.hu>, wernli at in2p3.fr
> Message-ID:
> 	<CAKcfE+ZKqqPnPOOSJek81eq_EPa7y3jUrPyKYH94jc3mxvPsmg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> 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 at 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
>> 
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20140920/c41f4430/attachment.html 
> 
> ------------------------------
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> 
> 
> End of syslog-ng Digest, Vol 113, Issue 11
> ******************************************



More information about the syslog-ng mailing list