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

Balazs Scheidler bazsi at balabit.hu
Fri Sep 16 11:06:29 CEST 2005


On Thu, 2005-09-15 at 10:51 -0700, Evan Rempel wrote:
> If I use the template option for TCP or UDP destinations, the priority of
> a message is always user.notice.
> 
> I set up a syslog.conf as
> 
> source local { unix-dgram("/dev/log"); internal(); };
> source network { udp(port(514)); tcp(port(514)); };
> destination syslogng { file("/var/log/syslog-ng" template("$DATE $HOST $FACILITY $PRIORITY $MESSAGE\n")); }        ;
> destination self { udp("cashmere.comp.uvic.ca" template("$FACILITY $PRIORITY From $HOST: $MESSAGE\n")); };
> log { source(local); destination(self); };
> log { source(network); destination(syslogng); };

add a "<$PRI>" to the beggining of your templates.

-- 
Bazsi



More information about the syslog-ng mailing list