Re: syslog-ng OSE v3.30.1 - slowdown when using env variable in destination clause

Fabien Wernli <[email protected]>
Newsgroups gmane.comp.syslog-ng
Organization CC-IN2P3 (CNRS)
Message-ID <[email protected]>
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}")
        );
    };

______________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.