@version: 3.19
@include "scl.conf"

# This is a custom syslog-ng configuration file, based in
# https://github.com/syslog-ng/syslog-ng/blob/master/packaging/debian/syslog-ng.conf
#


# First, set some global options.
options {
    chain_hostnames(off);
    flush_lines(0);
    use_dns(no);
    use_fqdn(no);
    owner("root");
    group("adm");
    perm(0640);
    stats_freq(0);
    bad_hostname("^gconfd$");
    ts-format("iso");
    time_zone("UTC");
    keep-hostname(yes);
};

# common block end


source s_src {
    system();
    internal();
};


# remote: 1
destination d_1_udp {
    syslog("192.168.122.1" transport("udp") ip-protocol(4) port(514)
        suppress(5)
        disk-buffer(
            mem-buf-size(2097152)
            disk-buf-size(4194304)
            reliable(yes)
            dir("/tmp")
        )
    );
};
filter f_remote_1_udp_authpriv {
    facility(authpriv) and level(debug .. emerg);
};
filter f_remote_1_udp_local0 {
    facility(local0) and level(debug .. emerg);
};
filter f_remote_1_udp_local6 {
    facility(local6) and level(debug .. emerg);
};
filter f_remote_1_udp {
    filter(f_remote_1_udp_authpriv) or filter(f_remote_1_udp_local0) or filter(f_remote_1_udp_local6); };
log {
    source(s_src);
    filter(f_remote_1_udp);
    destination(d_1_udp);
    flags(flow-control);
};
# end of remote server: 1
