[syslog-ng] Host/port from environment variables
Peter Flood
info at whywouldwe.com
Mon Jul 13 08:44:38 CEST 2015
Hi
I'm trying configure syslog-ng, I'd like to be able to use environment
variables for host & port. I've tried the ones that work in the template
formatter but it's not working (not suprisingly). Is there another way?
destination d_my_dest {
tcp("$(env MY_HOST)" port($(env MY_PORT)) # this doesn't work as
you can't get env vars unless in a template
tls(peer-verify(required-untrusted) ca_dir("/etc/syslog-ng/cert.d"))
template(myTemplate));
};
Thanks
More information about the syslog-ng
mailing list