osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: template() buggy for program()? - msg#00070

List: syslog-ng

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

2004-03-21, v keltezéssel 20:29-kor Loic Minier ezt írta:
> Balazs Scheidler <bazsi@xxxxxxxxxx> - Sat, Mar 20, 2004:
>
> > hmm.. what is your syslog-ng version?
>
> I am using syslog-ng-1.6.2 built with libol-0.3.13 and gcc under
> Solaris 8 (sparc).

you are right, this is a bug. syslog-ng always prepends the priority
field even when a template is used. Try this patch:

Index: afprogram.c
===================================================================
RCS file: /var/cvs/syslog-ng/syslog-ng/src/afprogram.c,v
retrieving revision 1.7
diff -u -r1.7 afprogram.c
--- afprogram.c 31 Jan 2003 14:26:48 -0000 1.7
+++ afprogram.c 22 Mar 2004 11:55:07 -0000
@@ -142,8 +142,7 @@
struct ol_string *msg_line;

if (self->template_output) {
- msg_line = c_format("<%i>%fS",
- msg->pri,
+ msg_line = c_format("%fS",
expand_macros(
self->cfg,
self->template_output,


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



_______________________________________________
syslog-ng maillist - syslog-ng@xxxxxxxxxxxxxxxx
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html




Thread at a glance:

Previous Message by Date:

Re: template() buggy for program()?

Balazs Scheidler <bazsi@xxxxxxxxxx> - Sat, Mar 20, 2004: > hmm.. what is your syslog-ng version? I am using syslog-ng-1.6.2 built with libol-0.3.13 and gcc under Solaris 8 (sparc). -- Loïc Minier <lool@xxxxxxxx> _______________________________________________ syslog-ng maillist - syslog-ng@xxxxxxxxxxxxxxxx https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html

Next Message by Date:

Re: template() buggy for program()?

Balazs Scheidler <bazsi@xxxxxxxxxx> - Mon, Mar 22, 2004: > you are right, this is a bug. syslog-ng always prepends the priority > field even when a template is used. Try this patch: Thanks! Too bad the server is shipped, but I'll use it in my next packages. -- Loïc Minier <lool@xxxxxxxx> _______________________________________________ syslog-ng maillist - syslog-ng@xxxxxxxxxxxxxxxx https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html

Previous Message by Thread:

Re: template() buggy for program()?

Balazs Scheidler <bazsi@xxxxxxxxxx> - Sat, Mar 20, 2004: > hmm.. what is your syslog-ng version? I am using syslog-ng-1.6.2 built with libol-0.3.13 and gcc under Solaris 8 (sparc). -- Loïc Minier <lool@xxxxxxxx> _______________________________________________ syslog-ng maillist - syslog-ng@xxxxxxxxxxxxxxxx https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html

Next Message by Thread:

Re: template() buggy for program()?

Balazs Scheidler <bazsi@xxxxxxxxxx> - Mon, Mar 22, 2004: > you are right, this is a bug. syslog-ng always prepends the priority > field even when a template is used. Try this patch: Thanks! Too bad the server is shipped, but I'll use it in my next packages. -- Loïc Minier <lool@xxxxxxxx> _______________________________________________ syslog-ng maillist - syslog-ng@xxxxxxxxxxxxxxxx https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!