[syslog-ng]Macros don't expand

Peter Österberg syslog-ng@lists.balabit.hu
Tue, 15 Apr 2003 23:46:56 +0200


Hi there

I've problems with macros. I've tried a few different config files now and 
macros don't seem to work in any of them.

Here's a short sample:

source src { unix-stream("/dev/log"); internal(); udp(ip(0.0.0.0) 
port(514)); };

destination d_mysql {
   pipe("/tmp/mysql.pipe"
   template("$HOST\n")
     );
   };

destination console { usertty("root" template("HELLO $HOST\n")); };

log { source(src); destination(d_mysql); destination(console); };


Since I don't get anything in my mysql server at the moment I run this to 
check the fifo 'cat < /tmp/mysql.pipe'
All that I get is the linefeed from \n

And on my console I only get HELLO \n

The macros don't seem to expand not just $HOST.

I run syslog-ng 1.6.0rc2 on a Slackware 9.0 box.

Thank you!

/peter