FW: [syslog-ng] syslog-ng 1.6.8 bug: not maintaining priority

Evan Rempel erempel at uvic.ca
Thu Sep 15 21:34:17 CEST 2005


Yes, this work as expected. The documentation needs to be updated to 
include the PRI macro.

Thanks for the help.

Evan.

On Thu, 15 Sep 2005, SheBang wrote:

> Date: Thu, 15 Sep 2005 12:14:17 -0700
> From: SheBang <infosec at gmail.com>
> To: syslog-ng at lists.balabit.hu
> Subject: Re: FW: [syslog-ng] syslog-ng 1.6.8 bug: not maintaining priority
> 
>> You can't use a hex number there, it needs to be decimal. I don't see a
>> macro that we can use to properly set the decimal <PRI> in the beginning of
>> a templated message. Bazsi, can you shed any light on this?
>>
>
> I dug into it, and it looks like the PRI macro should work. See news
> releases below.
>
> Try a template like this:
> destination self { udp("cashmere.comp.uvic.ca <http://cashmere.comp.uvic.ca>"
> template("<$PRI>$FACILITY $PRIORITY From $HOST: $MESSAGE\n"));
>
> News for the 1.6.3 release
> 	Thu, 06 May 2004 11:05:46 +0200
>
> 	* fixed afunix and afinet destination template handling, do not include
> 	  the PRI value automatically, let the administrator do it
> 	  explicitly in its template
>
>
> News for the 1.6.1 release
> 	Fri,  9 Jan 2004 10:27:38 +0100
>
> 	* added a new macro named "PRI" which inserts the decimal value of
> 	  the message priority (pri + level value combined)
>

--
Evan Rempel				erempel at uvic.ca
Senior Programmer Analyst		250.721.7691
Computing Services
University of Victoria


More information about the syslog-ng mailing list