13 Jul
2015
13 Jul
'15
8:44 a.m.
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