[syslog-ng]multiple destinations?

jon@dumbo.pobox.com jon@dumbo.pobox.com
Wed, 7 Mar 2001 16:03:59 -0500


i would like to have syslog-ng log to two destinations...is that possible?

ie...
filter mail_filt        { facility(mail) or facility(local4); };

destination maillogs {
        file("/var/log/ng/maillogs/$YEAR$MONTH$DAY/$FACILITY.$PRIORITY.$HOUR" dir_perm(0755) perm(0644));
};
destination loghost {
	    udp(host=x,port=y);
	    # note, i know this is wrong...i will make it right when i actually do the config
};

log {
        source(src);
        destination(maillogs);
	destination(loghost);
        filter(mail_filt);
};