[syslog-ng]multiple destinations?

Balazs Scheidler bazsi@balabit.hu
Thu, 8 Mar 2001 09:28:43 +0100


On Wed, Mar 07, 2001 at 04:03:59PM -0500, jon@dumbo.pobox.com wrote:
> 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);
> };

it's possible.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1