[syslog-ng] syslog-ng OSE v3.30.1 - slowdown when using env variable in destination clause
Fabien Wernli
wernli at in2p3.fr
Mon Feb 14 15:14:01 UTC 2022
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}")
);
};
More information about the syslog-ng
mailing list