14 Feb
2022
14 Feb
'22
3:14 p.m.
Hi, A quick search in the documentation popped up the following template function: env Syntax: $(env <environment-variable>) Description: Returns the value of the specified environment variable. Available in syslog-ng OSE3.5 and later. So I'd rather use the following in your config: destination d_collector { udp( "$(env COLLECTOR_IP)" port(514) template("${DATE} ${HOST} ${MSG}") ); };