<p dir="ltr">It came in with blocks and scl support. So if your version has support for the system driver it will support this as well. My memories are vague with 3.2.</p>
<p dir="ltr">Environment variables are resolved at parsing time and should work like this:</p>
<p dir="ltr">Template(&quot;template ‘envvar‘&quot;)</p>
<p dir="ltr">It works as if the environment variable was right there in the config file.</p>
<div class="gmail_quote">On Sep 21, 2014 3:14 PM,  &lt;<a href="mailto:jetjnkr@gmail.com">jetjnkr@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Balazs,<br>
<br>
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 &quot;define&quot; first?<br>
<br>
How much &#39;earlier&#39; versions of syslog-ng  will this work (e.g. before 3.2 ?)<br>
<br>
Jim.<br>
<br>
<br>
&gt;<br>
&gt;<br>
&gt; From: Balazs Scheidler &lt;<a href="mailto:bazsi77@gmail.com">bazsi77@gmail.com</a>&gt;<br>
&gt; Subject: Re: [syslog-ng] Injecting environment variables?<br>
&gt; To: &quot;Syslog-ng users&#39; and developers&#39; mailing list&quot;<br>
&gt;       &lt;<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>&gt;, <a href="mailto:wernli@in2p3.fr">wernli@in2p3.fr</a><br>
&gt; Message-ID:<br>
&gt;       &lt;<a href="mailto:CAKcfE%2BZKqqPnPOOSJek81eq_EPa7y3jUrPyKYH94jc3mxvPsmg@mail.gmail.com">CAKcfE+ZKqqPnPOOSJek81eq_EPa7y3jUrPyKYH94jc3mxvPsmg@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;<br>
&gt; Earlier you could use the backtick env variable format.<br>
&gt;<br>
&gt; This one is substituted at config parsing.<br>
&gt; On Sep 18, 2014 5:26 PM, &quot;Fabien Wernli&quot; &lt;<a href="mailto:wernli@in2p3.fr">wernli@in2p3.fr</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi Jim,<br>
&gt;&gt;<br>
&gt;&gt; As of version 3.5 you can use the `env` template function:<br>
&gt;&gt;<br>
&gt;&gt; template(&quot;&lt;$PRI&gt; $DATE $HOST $MSG $(env &lt;environment-variable&gt;) \n&quot;)<br>
&gt;&gt; template_escape(no));<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ______________________________________________________________________________<br>
&gt;&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt;&gt; Documentation:<br>
&gt;&gt; <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt;&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: <a href="http://lists.balabit.hu/pipermail/syslog-ng/attachments/20140920/c41f4430/attachment.html" target="_blank">http://lists.balabit.hu/pipermail/syslog-ng/attachments/20140920/c41f4430/attachment.html</a><br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; syslog-ng maillist  -  <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br>
&gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt;<br>
&gt;<br>
&gt; End of syslog-ng Digest, Vol 113, Issue 11<br>
&gt; ******************************************<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>