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
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq