16 Sep
2005
16 Sep
'05
11:06 a.m.
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