3 Jun
2002
3 Jun
'02
12:41 p.m.
Hi, Here is a patch to syslog-ng 1.5.13 that will allow the template() to be used within a program() - something like this: filter f_cap { program(^Cap); }; destination d_cap { program("perl -I /opt/cap/server/../inc /opt/cap/server/cmSyslog.pl" template(" \"DATE'$ISODATE'PROG'$PROGRAM'HOST'$HOST'TAG'$TAG'MSG'$MSG\n") template_escape(yes)); }; log { source(src); filter(f_cap); destination(d_cap); }; log { source(net); destination(d_cap); }; Enjoy! Please be aware, that I'm not a member of this syslog-ng mailing list, so if you want to send me comments, please use pvm@nworks.dk. Sincerely, Peter Morch. (See attached file: syslog-ng.patch)